metasm/exe_format/pe.rb in metasm-1.0.2 vs metasm/exe_format/pe.rb in metasm-1.0.3

- old
+ new

@@ -328,10 +328,10 @@ end # compute Mandiant "importhash" def imphash lst = [] - @imports.each { |id| + @imports.to_a.each { |id| ln = id.libname.downcase.sub(/.(dll|sys|ocx)$/, '') id.imports.each { |i| if not i.name and ordtable = WindowsExports::IMPORT_HASH[ln] iname = ordtable[i.ordinal] else