MISRA C:2025 Rule 21.8
R2026bThe Standard Library termination functions of <stdlib.h> shall
not be used
Since R2026b
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® reports a violation if your code contains any of the following:
Use of the
abort,exit,_Exit, orquick_exitfunctions that are defined in<stdlib.h>.Use of the macro
assertwhile the preprocessor macroNDEBUGis not defined. The macroassertexpands to callabort()whenNDEBUGis undefined.
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_2025.R21_8
|
Version History
Introduced in R2026b