Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
Include Page
Astrée_V
Astrée_V
octal-constantFully checked
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
LANG.TYPE.OCOctal constant
Klocwork
Include Page
Klocwork_V
Klocwork_V
MISRA.TOKEN.OCTAL.ESCAPE
MISRA.TOKEN.OCTAL.INT
 

LDRA tool suite 
Include Page
LDRA_V
LDRA_V
83 SFully Implemented
Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V

CODSTA-117

MISRA2004-7_1_a

Fully implemented
PRQA QA-C
 
Include Page
PRQA QA-C_v
PRQA QA-C_v

0339
1272

 

RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
octal-constantFully checked
SonarQube C/C++ Plugin
Include Page
SonarQube C/C++ Plugin_V
SonarQube C/C++ Plugin_V
OctalConstantAndSequence

PVS-Studio6.22V536General analysis rule
 

Related Guidelines

MISRA C:2012Rule 7.1 (required)

...


...