开发者

Difference between Static Corruption and Stack Corruption

开发者 https://www.devze.com 2023-01-07 19:11 出处:网络
Can anyone explain insights about the difference between Stack corruption and Static cor开发者_Go百科ruption ?Stack corruption is a memory corruption that is a result of an operation in your program e

Can anyone explain insights about the difference between Stack corruption and Static cor开发者_Go百科ruption ?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消