Skip to content

Commit

Permalink
oops. add pc_offset when we are faking a function ret gadget
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle committed Apr 30, 2024
1 parent da09c6b commit ecb0cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angrop/chain_builder/func_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ def func_call(self, address, args, **kwargs):
)(self.project.arch)
func_gadget = RopGadget(address)
func_gadget.stack_change = self.project.arch.bytes
func_gadget.pc_offset = 0
return self._func_call(func_gadget, cc, args, **kwargs)

0 comments on commit ecb0cb6

Please sign in to comment.