What use and heaps mean

what does this stack mean and use heap over thread

+4
source share
3 answers

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!

+1
source

Wikipedia has a pretty good overview of these types of exploits: http://en.wikipedia.org/wiki/Buffer_overflow

+1
source

For an example in the real world, check out this other question:

Writing to a pointer outside the bounds after malloc () that does not cause an error

0
source

Source: https://habr.com/ru/post/1333408/


All Articles