Error Handling (ERR)
- ERR00-C. Adopt and implement a consistent and comprehensive error-handling policy
- ERR01-C. Use ferror() rather than errno to check for FILE stream errors
- ERR02-C. Avoid in-band error indicators
- ERR04-C. Choose an appropriate termination strategy
- ERR05-C. Application-independent code should provide error detection without dictating error handling
- ERR06-C. Understand the termination behavior of assert() and abort()
- ERR07-C. Prefer functions that support error checking over equivalent functions that don't
Information for Editors
In order to have a new guideline automatically listed above be sure to label it err and recommendation .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| ERR00-C | Medium | Probable | No | No | P4 | L3 |
| ERR01-C | Low | Probable | Yes | Yes | P6 | L2 |
| ERR02-C | Low | Unlikely | No | No | P1 | L3 |
| ERR04-C | Medium | Probable | No | No | P4 | L3 |
| ERR05-C | Medium | Probable | Yes | No | P8 | L2 |
| ERR06-C | Medium | Unlikely | No | No | P2 | L3 |
| ERR07-C | Medium | Probable | Yes | Yes | P12 | L1 |


