Skip to content

Commit dacc73a

Browse files
committed
Improve readability based on Egypt's feedback
1 parent 031bb2e commit dacc73a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/ropbuilder/rop.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def process_gadgets(rets, num)
203203

204204
xtra = insn.bin_length
205205

206-
num.step(0, -1) do |x|
206+
num.downto(0) do |x|
207207
addr = ea - x
208208

209209
# get the disassembled instruction at this address

0 commit comments

Comments
 (0)