码迷,mamicode.com
首页 > 其他好文 > 详细

buffer overflow

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

标签:instr   array   ddr   wro   reference   variable   add   local   bin   

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

标签:instr   array   ddr   wro   reference   variable   add   local   bin   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!