oops, forgot to update fmtstr_count_printed

git-svn-id: file:///home/svn/framework3/trunk@7785 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2009-12-09 22:37:34 +00:00
parent d56daab7d8
commit 318750c68c
1 changed files with 5 additions and 4 deletions

View File

@ -192,9 +192,10 @@ module Exploit::FormatString
arr.each do |el| arr.each do |el|
prec = fmtstr_target_short(el[0], npr) prec = fmtstr_target_short(el[0], npr)
# this gets popped in order to advance the column (dpa doesn't need these) # this gets popped in order to advance the column (dpa doesn't need these)
if not @use_dpa and prec > 0 if not @use_dpa and prec >= 8
num += 4 num += 4
end end
# account for the addr to write to # account for the addr to write to
num += 4 num += 4
npr = el[0] npr = el[0]
@ -203,7 +204,7 @@ module Exploit::FormatString
end end
# #
# generate the number to be used for precision that will create # Generate the number to be used for precision that will create
# the specified value to write # the specified value to write
# #
def fmtstr_target_short(value, num_printed) def fmtstr_target_short(value, num_printed)
@ -214,7 +215,7 @@ module Exploit::FormatString
end end
# #
# generate a fmt that will advance the printed count by the specified amount # Generate a fmt that will advance the printed count by the specified amount
# #
def fmtstr_advance_count(prec) def fmtstr_advance_count(prec)
@ -248,7 +249,7 @@ module Exploit::FormatString
end end
# #
# read a single 32-bit integer from the stack at the specified offset # Read a single 32-bit integer from the stack at the specified offset
# #
def fmtstr_stack_read(offset, extra = '') def fmtstr_stack_read(offset, extra = '')