01.07.2016 Views

SEI CERT C Coding Standard

tqcylJ

tqcylJ

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error Handling (ERR) - ERR33-C. Detect and handle standard library errors<br />

MITRE CWE<br />

CWE-252, Unchecked Return Value<br />

CWE-253, Incorrect Check of Function Return<br />

Value<br />

CWE-390, Detection of Error Condition without<br />

Action<br />

CWE-391, Unchecked Error Condition<br />

CWE-476, NULL Pointer Dereference<br />

13.3.15 Bibliography<br />

[DHS 2006]<br />

[Henricson 1997]<br />

[ISO/IEC 9899:2011]<br />

[VU#159523]<br />

Handle All Errors Safely<br />

Recommendation 12.1, “Check for All Errors<br />

Reported from Functions”<br />

Subclause 7.21.7.10, “The ungetc Function”<br />

<strong>SEI</strong> <strong>CERT</strong> C <strong>Coding</strong> <strong>Standard</strong>: Rules for Developing Safe, Reliable, and Secure Systems 402<br />

Software Engineering Institute | Carnegie Mellon University<br />

[DISTRIBUTION STATEMENT A] Approved for public release and unlimited distribution.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!