Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Jan 31, 2024
1 parent a54ac3f commit 00e77e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refinery/units/formats/exe/vstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def _hook_mem_write(self, emu: Uc, access: int, address: int, size: int, value:
skipped = 'stack address'
elif not self.args.log_other_addresses and not state.blob:
for s in state.executable.sections():
if unsigned_value in s.virtual:
if address in s.virtual:
skipped = F'write to section {s.name}'
break
if (
Expand All @@ -394,7 +394,7 @@ def info():
t = re.sub('[^!-~]', '.', data.decode('latin1'))
msg = state.log(F'{state.fmt(address)} <- {h:_<{ph}} {t:_<{pt}}')
if skipped:
msg = F'{msg} {skipped}'
msg = F'{msg} (ignored: {skipped})'
return msg

self.log_info(info)
Expand Down

0 comments on commit 00e77e2

Please sign in to comment.