Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
3 Recommendations
Rec. 12. Error Handling (ERR)
ERR02-C. Avoid in-band error indicators
Page Information
Title:
ERR02-C. Avoid in-band error indicators
Author:
Robert Seacord (Manager)
Apr 26, 2008
Last Changed by:
David Svoboda
Jun 17, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ENcxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (8)
Page:
EXP12-C. Do not ignore values returned by functions
Page:
FIO34-C. Distinguish between characters read from a file and EOF or WEOF
Page:
DCL09-C. Declare functions that return errno with a return type of errno_t
Page:
API09-C. Compatible values should have the same type
Page:
INT10-C. Do not assume a positive remainder when using the % operator
Page:
STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
Page:
EXP20-C. Perform explicit tests to determine success, true and false, and equality
Page:
ERR05-C. Application-independent code should provide error detection without dictating error handling
Hierarchy
Parent Page
Page:
Rec. 12. Error Handling (ERR)
Labels
Global Labels (5)
android-applicable
exceptions
unenforceable
recommendation
err
Recent Changes
Time
Editor
Jun 17, 2025 16:07
David Svoboda
View Changes
wordsmithing
Jun 17, 2025 16:02
Joseph C. Sible
View Changes
Use feenableexcept as an example instead of Annex K
Jun 16, 2025 15:49
Richard W. Laughlin
View Changes
Removed references to Annex K.
May 20, 2025 08:34
David Svoboda
View Changes
REM Cost Reform
Jun 24, 2024 08:54
Michal Rozenau
Parasoft C/C++test 2024.1
View Page History
Outgoing Links
External Links (8)
https://www.securecoding.cert.org/confluence/display/c/INT3…
https://www.securecoding.cert.org/confluence/display/c/FLP0…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.securecoding.cert.org/confluence/display/c/INT1…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.gnu.org/software/libc/manual/html_node/Control-…
SEI CERT C Coding Standard (6)
Page:
Parasoft
Page:
AA. Bibliography
Page:
Parasoft_V
Page:
BB. Definitions
Page:
FIO34-C. Distinguish between characters read from a file and EOF or WEOF
Home page:
SEI CERT C Coding Standard
SEI CERT C++ Coding Standard (2)
Home page:
SEI CERT C++ Coding Standard
Page:
VOID ERR02-CPP. Avoid in-band error indicators
Overview
Content Tools
{"serverDuration": 92, "requestCorrelationId": "c376c7a21dc59d60"}