This rule is part of MISRA C++:2023.
Usage of this content is governed by Sonar’s terms and conditions. Redistribution is
prohibited.
Rule 21.2.3 - The library function system from <cstdlib> shall not be used
[C11] / 7.22.4.8; Undefined 2; Implementation 2, 3
Category: Required
Analysis: Decidable,Single Translation Unit
Amplification
This function shall not be called or have its address taken, and no macro having this name shall be expanded.
Note: this rule also applies to system from <stdlib.h>.
Rationale
The system function has undefined and implementation-defined behaviour associated with it.
Errors related to its use are a common cause of security vulnerabilities.
Copyright The MISRA Consortium Limited © 2023