Memory corruption
Memory corruption occurs when a memory location or register is
accidentally overwritten by a program, due to a programming error.
This kind of error may crash a program immediately, or lurk undetected for years, only occasionally causing the wrong behaviour.
Finding such bugs can be extremely difficult. Therefore, programming tools that detect such errors automatically, such as Valgrind, can be invaluable.
|