...
Recommendation | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
MSC07-C | Low | Unlikely | No | YesMedium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| dead-assignemnt dead-initializer | Partially checked and soundly supported. | |||||||||||
| CodeSonar |
| DIAG.UNEX.* | Code not exercised by analysis | |||||||||||
| DEADCODE
| Can detect the specific instance where code can never be reached because of a logical contradiction or a dead "default" in Can detect the instances where code block is unreachable because of the syntactic structure of the code | ||||||||||||
| GCC |
| Can detect violations of this recommendation when the | ||||||||||||
| Helix QAC |
| C1501, C1503, C2008, C2877, C2880, C2881, C2882, C2883,C3202, C3203, C3205, C3206, C3207, C3210, C3219, C3229, C3404, C3422, C3423, C3425, C3470 DF2877, DF2880, DF2881, DF2882, DF2883, DF2980, DF2981, DF2982, DF2983, DF2984, DF2985, DF2986 | ||||||||||||
| Klocwork |
| LVLA_UNUSED INVARIANT_CONDITION.UNREACH | ||||||||||||
| LDRA tool suite |
| 1 J | Fully implemented | |||||||||||
| Parasoft C/C++test |
| MISRA2004-14_1_a, MISRA2004-14_1_b, MISRA2004-14_1_c, MISRA2004-14_1_d, MISRA2004-14_1_e, MISRA2004-14_1_f, MISRA2004-14_1_g, BD-PB-SWITCH | Fully implemented | CERT_C-MSC07-a | There shall be no unreachable code in "else" block | |||||||||
| Polyspace Bug Finder |
| CERT C: Rule MSC07-C | Polyspace Bug Finder | R2016a | Checks for: |
| PRQA QA-C||||||||
| RuleChecker |
| dead-assignemnt | Partially checked | |||||||||||
| Security Reviewer - Static Reviewer |
| PRQA QA-C_v | PRQA QA-C_v |
| 3422,3423,3425,3470,2980,2981,2982,2983,2984,2985,2986CPP_57 | Fully implemented | ||||||||
| SonarQube C/C++ Plugin |
| S1763, S1751 | ||||||||||||
| Splint |
| Can detect violations of this recommendation when the |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...