Versions Compared

Key

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

...

Tool

Version

Checker

Description

Compass/ROSE  

Can detect violations of this rule. However, it does not flag explicit casts to void * and then back to another pointer type

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.EXP36

Fully implemented
EDG   
GCC
Include Page
GCC_V
GCC_V
 

Can detect some violations of this rule when the -Wcast-align flag is used

Klocwork 
Include Page
Klocwork_V
Klocwork_V

MISRA.CAST.PTR.UNRELATED
MISRA.CAST.PTR_TO_INT
PORTING.CAST.PTR.FLTPNT

PORTING.CAST.PTR
PORTING.CAST.PTR.SIZE
PORTING.CAST.SIZE

 
LDRA tool suite
Include Page
LDRA_V
LDRA_V

94 S, 606 S

Partially implemented
Parasoft C/C++test9.5MISRA2004-11_4Fully implemented
Polyspace Bug FinderR2016aUnreliable cast of pointerPointer implicitly cast to different data type
PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
3305Fully implemented
 PRQA QA-C++4.1 3033, 3038  

Related Vulnerabilities

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

...