Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CERT C Secure Coding StandardERR33-C. Detect and handle standard library errors
MITRE CWE

CWE 252, Unchecked Return Value
CWE 391,
Unchecked Error Condition
CWE 476,
NULL Pointer Dereference
CWE 690
, Unchecked Return Value to NULL Pointer Dereference
CWE 703
, Improper Check or Handling of Exceptional Conditions
CWE 754, Improper Check for Unusual or Exceptional Conditions

Bibliography

[ISO/IEC 9899:2011]Subclause 7.20.3, "Memory Management Functions"
[ISO/IEC 14882-2014]

Subclause 18.6.1.1, "Single-Object Forms"
Subclause 18.6.1.2, "Array Forms"
Subclause 20.7.9.1, "Allocator Members"

[Meyers 95]Item 7, "Be Prepared for Out-of-Memory Conditions"
[Seacord 2013b]Chapter 4, "Dynamic Memory Management"

...