What is heap corruption?

In a process, heap memory is used for the dynamic allocation of memory. There are several reasons why this memory can get corrupted. For example, when processes do any of the following:

  • Overwrite the allocated bounds of some variable 

  • Use pointers that point to unallocated or freed-up memory

  • Use uninitialized pointers

Get hands-on with 1400+ tech skills courses.