...
Failure to include break
statements leads to unexpected control flow.
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
MSC17-C | Medium | Likely | Low | P18 | L1 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Astrée |
| switch-clause-break | Fully checked | ||||||
CodeSonar |
| LANG.STRUCT.SW.MB | Missing break | ||||||
Compass/ROSE |
| MISSING_BREAK | Can find instances of missing break statement between cases in | |||||||
| CC2.MSC17 | Fully implemented | |||||||
Klocwork |
| MISRA.SWITCH.WELL_FORMED.BREAK.2012 |
LDRA tool suite |
| 62 S | Fully implemented | ||||||
Parasoft C/C++test |
|
|
| JSF-193 | Fully implemented | ||||||
R2016b | Missing break of switch case | No comments at the end of switch case without a break statement | ||||||
PRQA QA-C |
| 2003 |
RuleChecker |
| switch-clause-break | Fully checked | ||||||
SonarQube C/C++ Plugin |
| NonEmptyCaseWithoutBreak |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
...
...