...
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 7.6.0 |
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
|
...
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