logoalt Hacker News

stkdumptoday at 8:49 AM1 replyview on HN

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?


Replies

st_goliathtoday at 9:16 AM

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.