Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Polyspace Bug Finder

...

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
Include Page
Astrée_V
Astrée_V
switch-clause-breakFully checked
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
LANG.STRUCT.SW.MBMissing break
Compass/ROSE

 

 

 




Coverity

Include Page
Coverity_V
Coverity_V

MISSING_BREAK

Can find instances of missing break statement between cases in switch statement

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.MSC17

Fully implemented

Klocwork
Include Page
Klocwork_V
Klocwork_V
MISRA.SWITCH.WELL_FORMED.BREAK.2012
 

LDRA tool suite
Include Page
LDRA_V
LDRA_V
62 SFully implemented
Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V
JSF-193Fully implemented

Polyspace Bug Finder

R2016bMissing break of switch caseNo comments at the end of switch case without a break statement
PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
2003
 

RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
switch-clause-breakFully checked
SonarQube C/C++ Plugin
Include Page
SonarQube C/C++ Plugin_V
SonarQube C/C++ Plugin_V
NonEmptyCaseWithoutBreak
 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

...


...