...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
CERT C++ Secure Coding Standard | EXP36-CPP. Do not convert pointers into more strictly aligned pointer types |
ISO/IEC TR 24772 | Pointer casting and pointer type changes [HFC] |
ISO/IEC TS 17961 (Draft) | Converting pointer values to more strictly aligned pointer types [alignconv] |
MISRA-C | Rule 11.2 (required): Conversions shall not be performed between a pointer to object and any type other than an integral type, another pointer to object type or a pointer to void Rule 11.3 (advisory): A cast should not be performed between a pointer type and an integral type |
Bibliography
[Bryant 2003] | |
[ISO/IEC 9899:2011] | Section 6.3.2.3, "Pointers" |
[Walfridsson 2003] | Aliasing, Pointer Casts and GCC 3.3 |
...