Hacking, Binary Exploitation, C, Programming, Vulnerability.
local variables can be referenced by adding or substracting offset from the BP. ❓But isn’t that what the return address is for? 💡NO. The return address does not point to the previous stack frame — it points to the next instruction in the calling method. 2.) Copy SP into BP to create the new BP —