Academia.eduAcademia.edu

The function present at the address space pointed by the RET will be executed next. Each such stack is reserved for every function, array or any sequential logical structure- stack, queue, etc. The loophole exists in the bounds of these. As the stack continue new information is being added down the stack leading to the growth of the stack but if the bounds aren’t checked, the stack can grow beyond the reserved memory, leading to the registers like RET getting overwritten. If the RET is overwritten with any other  information, the stack won’t be pointing to the next address space for continuous execution and program crashes. Figure 2 explains this pictographic detail and simplicity.

Figure 2 The function present at the address space pointed by the RET will be executed next. Each such stack is reserved for every function, array or any sequential logical structure- stack, queue, etc. The loophole exists in the bounds of these. As the stack continue new information is being added down the stack leading to the growth of the stack but if the bounds aren’t checked, the stack can grow beyond the reserved memory, leading to the registers like RET getting overwritten. If the RET is overwritten with any other information, the stack won’t be pointing to the next address space for continuous execution and program crashes. Figure 2 explains this pictographic detail and simplicity.