Assuming you are not on a platform that will stop your application and say βstack overflowβ, I suspect you will see the same behavior as with any buffer overflow. The stack is another pre-allocated memory chunk for your program, and if you go beyond that ... good luck! Who knows what you will stomp on!
You can write according to the temperature readings from the CPU, it can be the email address that you type on Larry, maybe it means that the kernel is locked, which causes a funny deadlock condition! Who knows.
As for C ++, nothing is said about how the stack should be laid out in relation to other things in memory or that this thing should even be a stack!
Doug T.
source share