Search code examples
stackstack-overflowterminologycorruption

Difference between Static Corruption and Stack Corruption


Can anyone explain insights about the difference between Stack corruption and Static corruption ?


Solution

  • 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