...
Misrepresenting decimal values as octal can lead to incorrect comparisons and assignments.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
DCL18-C | Low | Unlikely | No | LowNo | P3P1 | L3 |
Automated Detection
Tool | Version | Checker | Description | |||||||||||
| Astrée |
| octal-constant | Fully checked | |||||||||||
| Axivion Bauhaus Suite |
| CertC-DCL18 | ||||||||||||
| CodeSonar |
| LANG.TYPE.OC | Octal constant | |||||||||||
| Helix QAC |
| C0339, C1272 | ||||||||||||
| Klocwork |
| MISRA.TOKEN.OCTAL.ESCAPE MISRA.TOKEN.OCTAL.INT | ||||||||||||
| LDRA tool suite |
| 83 S | Fully Implemented | |||||||||||
| Parasoft C/C++test |
| CERT_C-DCL18-a | Octal and hexadecimal escape sequences shall be terminated | |||||||||||
| PC-lint Plus |
| 9001 | Fully supported | |||||||||||
| Polyspace Bug Finder |
| CERT C: Rec. DCL18-C | Checks for use of octal constants (rec. fully covered) | PRQA QA-C | ||||||||||
| Include Page | PRQA QA-C_v | PRQA QA-C_v | 0339||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PVS-Studio |
| V536 | ||||||||||||
| RuleChecker |
| octal-constant | Fully checked | |||||||||||
| SonarQube C/C++ Plugin |
| OctalConstantAndSequence |
...