diff --git a/rop.rb b/rop.rb index 6d24a40..aa16406 100644 --- a/rop.rb +++ b/rop.rb @@ -203,7 +203,7 @@ class RopCollect < RopBase xtra = insn.bin_length - num.step(0, -1) do |x| + num.downto(0) do |x| addr = ea - x # get the disassembled instruction at this address