CastToStruct -- Cast from Non-struct to struct Pointer
Go Up to C++ Audits
Description
CastToStruct checks for cast from non-struct pointer to struct pointer.
Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption.