-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
I think this paragraph could be explained a bit more clearly:
When the printf() function executes, it looks for a format string modifier denoted by a “%” in its first argument located 4 bytes above the RIP of printf(). If it finds the modifier, it then looks 8 bytes above the RIP for the “actual” argument (i.e. what the format modifier will be acting upon).
- The address of the first argument, not the first argument itself, is located 4 bytes above the RIP
- "actual" is a little vague, would it be more accurate to say second argument or first modifier argument?
- In this case 8 bytes above RIP coincidentally points to the (middle of the) first argument to
printfbut this isn't generally true.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels