4 ms·
> Thinking about it more you don't even need the parameter, just declare a local variable, take its address and go crazy. If you go one layer below with some a
by asveikau 7y ago
> Thinking about it more you don't even need the parameter, just declare a local variable, take its address and go crazy.
If you go one layer below with some assembly, you don't even need variables. Just take the stack pointer register (rsp on amd64) and start writing!
Or maybe no assembly needed, just cast an arbitrary hexadecimal value you think is likely to be in range to be your stack pointer [may vary by platform, ASLR, how many frames are on the stack, etc.] into a pointer and go to town.