3 ms·
Memory safety is not about memory leaks. It's concerned with the corruption of data structures, particularly the stack and the heap. To elaborate a little, con
by Hemospectrum 2y ago
Memory safety is not about memory leaks. It's concerned with the corruption of data structures, particularly the stack and the heap.
To elaborate a little, consider security. If your software's only vulnerability is potential memory leaks, an attacker can only get away with denial-of-service attacks. If your software is vulnerable to buffer overflows, an attacker can use return-oriented programming to get arbitrary code execution, exfiltrate all your data, and add your machine to a botnet to perform subsequent attacks on yet other systems.