Incorrect memory accesses

Often, bugs and issues in this class are so common as to be blithely overlooked! Beware, they remain very dangerous; take care to find, understand, and fix them.

All classes of overflow and underflow bugs on memory buffers are carefully documented and tracked via the Common Vulnerabilities and Exposures (CVE) and the Common Weakness Enumeration (CWE) websites. Relevant to what we are discussing, CWE-119 is the Improper Restriction of Operations within the Bounds of a Memory Buffer (https://cwe.mitre.org/data/definitions/119.html).

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.