...
Misrepresenting decimal values as octal can lead to incorrect comparisons and assignments.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
DCL18-C | Low | Unlikely | Low | P3 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
| Astrée |
| octal-constant | Fully checked | ||||||
| CodeSonar |
| LANG.TYPE.OC | Octal constant | ||||||
| Klocwork |
| MISRA.TOKEN.OCTAL.ESCAPE MISRA.TOKEN.OCTAL.INT |
| LDRA tool suite |
| 83 S | Fully Implemented | ||||||
| Parasoft C/C++test |
|
|
| CODSTA-117 MISRA2004-7_1_a | Fully implemented | ||||||
| PRQA QA-C |
| 0339 |
| RuleChecker |
| octal-constant | Fully checked | ||||||
| SonarQube C/C++ Plugin |
| OctalConstantAndSequence |
| PVS-Studio | 6.22 | V536 | General analysis rule |
Related Guidelines
| MISRA C:2012 | Rule 7.1 (required) |
...
...