mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Read section info from PE header (#311)
* Read section info from PE header * Remove the need for textraw and textvirt members * typo
This commit is contained in:
@@ -86,7 +86,7 @@ def sanitize(file, placeholder_generator, mnemonic, op_str):
|
||||
for i, word in enumerate(words):
|
||||
try:
|
||||
inttest = int(word, 16)
|
||||
if inttest >= file.imagebase + file.textvirt:
|
||||
if inttest >= file.get_section_offset_by_index(1):
|
||||
words[i] = placeholder_generator.get(inttest)
|
||||
except ValueError:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user