Comment by stkdump
4 hours ago
So what if several functions that use less than 4KB each call each other before using the stack variables in a way that the first access skips over one page?
4 hours ago
So what if several functions that use less than 4KB each call each other before using the stack variables in a way that the first access skips over one page?
A function call causes the return address to be pushed onto the stack, thus accessing the stack below the adjusted stack pointer address.
On compiler generated x86 code, the base pointer register will quickly follow when entering the target function.