静态损坏和堆栈损坏之间的区别
谁能解释一下堆栈损坏和静态损坏之间的区别?
Can anyone explain insights about the difference between Stack corruption and Static corruption ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
谁能解释一下堆栈损坏和静态损坏之间的区别?
Can anyone explain insights about the difference between Stack corruption and Static corruption ?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
堆栈损坏是一种内存损坏,是程序中操作的结果,例如无界数组复制会导致覆盖位于堆栈中的元素(局部变量、返回地址等)。结果,程序崩溃或表现出未定义的行为。
静态损坏(我猜你的意思是静态变量的损坏)是指变量由于某种编程错误而采用意外值并导致暂时性错误
Stack corruption is a memory corruption that is a result of an operation in your program e.g. an unbounded array copy results in overwriting elements located in stack (local variables, return address etc). As a result the program crashes or exhibits undefined behavior.
Static corruption (I guess you mean corruption of static variables) is just when the variable takes an unexpected value due to some kind of programming error and results in transient bugs