Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated parasoft

...

Failing to declare an unchanging value const prohibits the function from working with values already cast as const. This problem can be sidestepped by type casting away the const, but doing so violates EXP05-C. Do not cast away a const qualification.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

DCL13-C

Low

Unlikely

Low

P3

L3

Automated Detection

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V
parameter-missing-constFully checked
Compass/ROSE

 

 



Can detect violations of this recommendation while checking for violations of recommendation DCL00-C. Const-qualify immutable objects

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.DCL13

Fully implemented

Klocwork
Include Page
Klocwork_V
Klocwork_V
MISRA.PPARAM.NEEDS.CONST
 

LDRA tool suite
Include Page
LDRA_V
LDRA_V

120 D

Fully implemented

Parasoft C/C++test
Include Page
c:
Parasoft_V
c:
Parasoft_V
MISRA2005
MISRA2004-16_7Fully implemented
PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v

3673
0431(C)

Fully implemented
RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
parameter-missing-constFully checked

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

...


...