Patch from dustin

git-svn-id: file:///home/svn/framework3/trunk@5161 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2007-10-19 14:26:56 +00:00
parent ad050b492d
commit 077bccbbe2
1 changed files with 3 additions and 1 deletions

View File

@ -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