...
Failing to ensure that constants within an enumeration have unique values can result in unexpected results.
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
INT09-C | Low | Probable | Medium | P4 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| enum-implicit-value | Fully checked | ||||||
| CodeSonar |
| LANG.STRUCT.INIT.ENUM | Inconsistent Enumerator Initialization | ||||||
| Compass/ROSE |
| CC2.INT09 | Fully implemented | |||||||
| Klocwork |
| MISRA.ENUM.IMPLICIT.VAL.NON_UNIQUE.2012 |
| LDRA tool suite |
| 85 S, 630 S | Fully implemented | ||||||
| Parasoft C/C++test |
|
|
| MISRA2004-9_3 | Fully implemented | |||||||
| PRQA QA-C |
| 0724 | Fully implemented | ||||||
| RuleChecker |
| enum-implicit-value | Fully checked |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
...
...