Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

EXP35-CPP

medium

probable

medium

P8

L2

Automated Detection

The LDRA tool suite V 7.6.0 can detect violations of this recommendation.

...

Tool

Version

Checker

Description

Section

LDRA tool suite

7.6.0

 

 

Section

GCC

 

 

Section

Can detect violations of this recommendation when the -Wcast-qual flag is used.

Section

Compass/ROSE

 

 

 

Section

ECLAIR

Include Page
cplusplus:ECLAIR_Vcplusplus:
ECLAIR_V
Section

castexpr

Section

Fully Implemented

...

This rule appears in the C Secure Coding Standard as EXP05-C. Do not cast away a const qualification.

Bibliography

...

\[[ISO/IEC 14882-2003|AA. Bibliography#ISO/IEC 14882-2003] \] Sections 3.9.3 CV-qualifiers and 3.10 Lvalues and rvalues (para. 13). \
[[Sutter 04|AA. Bibliography#Sutter 04]\] Item 94: Avoid casting away const.

...

EXP34-CPP. Ensure a null pointer is not dereferenced      03. Expressions (EXP)      EXP36-CPP. Do not convert pointers into more strictly aligned pointer types