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:
Michal Rozenau
Jun 24, 2024
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ENcxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (9)
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:
ERR03-C. Use runtime-constraint handlers when calling the bounds-checking interfaces
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 24, 2024 08:54
Michal Rozenau
View Changes
Parasoft C/C++test 2024.1
Dec 06, 2018 09:07
Michal Rozenau
View Changes
Parasoft C/C++test 10.4.1 update
Nov 16, 2017 14:40
Will Snavely
View Changes
Apr 17, 2017 17:54
David Svoboda
View Changes
size explicitly specified
Oct 01, 2015 06:12
Carol J. Lallier
View Page History
Outgoing Links
External Links (7)
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…
SEI CERT C++ Coding Standard (2)
Home page:
SEI CERT C++ Coding Standard
Page:
VOID ERR02-CPP. Avoid in-band error indicators
SEI CERT C Coding Standard (7)
Page:
Parasoft
Page:
ERR03-C. Use runtime-constraint handlers when calling the bounds-checking interfaces
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
Overview
Content Tools
{"serverDuration": 119, "requestCorrelationId": "3a4dc3542e0dd622"}