首页 > 其他 > 详细

buffer overflow

时间:2016-12-06 14:28:22      阅读:141      评论:0      收藏:0      [点我收藏+]

Computer Systems A Programmer‘s Perspective Second Edition

We have seen that C does not perform any bounds checking for array references,

and that local variables are stored on the stack along with state information such
as saved register values and return addresses. This combination can lead to serious
program errors, where the state stored on the stack gets corrupted by a write to an
out-of-bounds array element. When the program then tries to reload the register
or execute a ret instruction with this corrupted state, things can go seriously
wrong. A particularly common source of state corruption is known as
buffer overflow. Typically some character array is allocated on the stack to hold a string, but the
size of the string exceeds the space allocated for the array.
 
缓冲区溢出
 

buffer overflow

原文:http://www.cnblogs.com/yuanjiangw/p/6137194.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!