Patch from dustin
git-svn-id: file:///home/svn/framework3/trunk@5161 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
ad050b492d
commit
077bccbbe2
|
@ -265,7 +265,8 @@ module Analyze
|
|||
next if section.name == ".data"
|
||||
next if section.name == ".reloc"
|
||||
|
||||
for offset in 0...section.size
|
||||
offset = 0
|
||||
while offset < section.size
|
||||
byte = section.read(offset, 1)[0]
|
||||
if byte != 0
|
||||
chunkbase = pe.rva_to_vma( section.base_rva) + offset
|
||||
|
@ -281,6 +282,7 @@ module Analyze
|
|||
|
||||
fd.write(buff) if buff
|
||||
end
|
||||
offset += 1
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue