Skip to content

Commit

Permalink
prevent some compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
wmliang committed Nov 14, 2019
1 parent 6358134 commit 4036d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def process_pe():
if is_exe(s):
d.VirtualAddress = update_addr(d.VirtualAddress)
append = update_load_config_tbl(pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.SEHandlerTable, pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.SEHandlerCount, pe_size, append)
if d.Size > 0x60:
if pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.Size > 0x60:
extra = (pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.GuardFlags & 0xF0000000)>>28
append = update_load_config_tbl(pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.GuardCFFunctionTable, pe.DIRECTORY_ENTRY_LOAD_CONFIG.struct.GuardCFFunctionCount, pe_size, append, align=extra+4)
# update TLS directory
Expand Down

0 comments on commit 4036d2f

Please sign in to comment.