Skip to content

Commit

Permalink
allow disabling the instruction limit
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Oct 21, 2024
1 parent b52439f commit e8607c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refinery/units/formats/exe/vstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def _hook_code(self, emu: Uc, address: int, size: int, state: EmuState):
try:
state.ticks -= 1
state.visits[address] += 1
if state.visits[address] > state.max_loop:
if state.visits[address] > state.max_loop > 0:
self.log_info(
F'aborting emulation: 0x{address:0{state.executable.pointer_size // 8}X}'
F' was visited more than {state.max_loop} times.')
Expand Down

0 comments on commit e8607c4

Please sign in to comment.