MISRA C:2012 Rule 21.8
R2026bThe Standard Library termination functions of
<stdlib.h> shall not be used
Description
The Standard Library termination functions of <stdlib.h>
shall not be used.
Rationale
Using these functions can cause undefined and implementation-defined behaviors.
Polyspace Implementation
Polyspace® flags the use of the abort,
exit, _Exit, or quick_exit
functions that are defined in <stdlib.h>.
If these functions are user-defined, Polyspace does not flag them.
Troubleshooting
If you expect a rule violation but do not see it, refer to Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
| Group: Standard Libraries |
| Category: Required |
| AGC Category: Required |
PQL Name:
std.misra_c_2012.R21_8 |