printf(): Fix wrong instruction when fetching arg from stack (lea->mov : arg already is (supposed to be) an address)
This commit is contained in:
@@ -138,7 +138,7 @@ printf:
|
|||||||
mov rsi, [printfArgs + SIZE_QWORD * rdx]
|
mov rsi, [printfArgs + SIZE_QWORD * rdx]
|
||||||
jmp .insertString
|
jmp .insertString
|
||||||
.s_fromStack:
|
.s_fromStack:
|
||||||
lea rsi, [rbp + RBP_OFFSET_CALLER + ((rdx-5) * SIZE_QWORD)]
|
mov rsi, [rbp + RBP_OFFSET_CALLER + ((rdx-5) * SIZE_QWORD)]
|
||||||
|
|
||||||
;--- Insert string to buffer ---;
|
;--- Insert string to buffer ---;
|
||||||
.insertString:
|
.insertString:
|
||||||
|
Reference in New Issue
Block a user