Chapter 4 Dynamic Memory Management
with Fred Long1
1. Fred Long is a senior lecturer in the Department of Computer Science at the University of Wales, Aberystwyth, in the United Kingdom.
By the pricking of my thumbs,Something wicked this way comes.Open, locks,Whoever knocks!—William Shakespeare,Macbeth. Act IV, Sc. 1.
C and C++ programs that operate on a variable number of data elements require the use of dynamic memory to manage this data. The vast majority of applications use some form of memory management.
Memory management has always been a source of elusive programming defects, and consequently, a source of security flaws and vulnerabilities. Programming defects in which memory is freed twice, for example, can lead to exploitable vulnerabilities. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access