...
Exception handlers with inverted priorities cause unexpected control flow when an exception of the derived type occurs.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
ERR54-CPP | Medium | Likely | Low | P18 | L1 |
Automated Detection
Tool | Version | Checker | Description | |||||
|---|---|---|---|---|---|---|---|---|
| Clang |
| -Wexceptions |
| CP1.ERR36 | Fully implemented | |||||||
| Klocwork |
| MISRA.CATCH.NOALL MISRA.CATCH.WRONGORD |
| LDRA tool suite |
| 541 S, 556 S | Fully implemented | ||||||
| Parasoft C/C++test |
|
|
| EXCEPT-17 |
| PRQA QA-C++ |
| 4030, 4639 |
| SonarQube C/C++ Plugin |
| S1045 |
| PVS-Studio | 6.22 | V759 | General analysis rule |
Related Vulnerabilities
Search for other vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
| [MISRA 08] | Rule 15-3-6 (Required) |
Bibliography
| [ISO/IEC 14882-2014] | Subclause 15.3, "Handling an Exception" |
...
...