...
If expressions that appear to produce side effects are an unevaluated operand, the results may be different than expected. Depending on how this result is used, it can lead to unintended program behavior.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
EXP52-CPP | Low | Unlikely | Low | P3 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Axivion Bauhaus Suite |
| CertC++-EXP52 | |||||||
Clang |
| -Wunevaluated-expression |
Klocwork |
|
LDRA tool suite |
| 54 S, 133 S | Partially implemented | ||||||
Parasoft C/C++test |
|
|
| JSF-166, JSF-166_{b,c} |
PRQA QA-C++ |
| 3240, 3241 |
PRQA QA-C | 9.1 | 3240, 3241 |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
SEI CERT C Coding Standard | EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic |
Bibliography
...