Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Interactive guide to Buffer Overflow exploitation.
In the first 2 examples, it says:
"If you pop (fetch) a value from the stack, RSP decreases by 8"
But when I step through it, it seems to add 8 on a pop, not subtract (and vice versa for push), or am I missing something?
You're decreasing the stack, but increasing RSP. Because the stack "grows down".
In the first 2 examples, it says:
"If you pop (fetch) a value from the stack, RSP decreases by 8"
But when I step through it, it seems to add 8 on a pop, not subtract (and vice versa for push), or am I missing something?