Stack-based usage example: (implementation defined or possibly undefined, nonetheless interesting!)
Just look at the result: http://www.ideone.com/A3vlY
Also note the runtime error!
I especially try:
- By rewriting the return address in the stack frame. As soon as the function returns, execution will resume at the return address specified by the attacker, usually a buffer is populated by the user.
From Wikipedia Using stack-based marker points
This example probably demonstrates the above quote from Wikipedia, which gives you an interesting starting point on what stack-based usage might mean. The pursuit of thought!
Nawaz source share