First page Back Continue Last page Graphics
Mechanics of stack-based buffer overflow
Stack is like a pile of plates
When a function is called, the return address is pushed on the stack
In a function, local variables are written on the stack
Memory is written on stack
- char username[4] reserved 4 bytes of space on stack