0
6.0kviews
Write in brief about Buffer overflow attack.
1 Answer
written 8.0 years ago by |
A program calls a function (subroutine). Control transfers to the function. But before that the return address to the calling function is stored in stack as
[return_address][data][data]….
Now the function calls xyz[i]=44 where i=5. It’s out of bound. Still space will be allocated sice the compiler cant detect it!!
[a0][a1][a2][a3][a4][44][data][data]…….