Skip to content

Commit

Permalink
Use nextGadgetAddr as the adjust value
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Oct 3, 2017
1 parent af22505 commit 71147ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/rop/rop.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def build(self, base = None, description = None):
if adjust:
nextGadgetAddr += adjust.move

stack.describe('<adjust %#x: %s>' % (fix_bytes, self.describe(adjust)))
stack.describe('<adjust @%#x> %s' % (nextGadgetAddr, self.describe(adjust)))
stack.append(adjust.address)

for pad in range(fix_bytes, adjust.move, context.bytes):
Expand Down

0 comments on commit 71147ec

Please sign in to comment.