Archived issue #0025615
Never perform C cast between incompatible class pointers
Description
Using an incompatible C cast between class pointers will result in unpredictable behavior with high risk of crash and/or memory corruption.
Additional information
According to the CAST report, following parts of code contain this problem:
DEFINE_STANDARD_HANDLECLASS
OpenGl_GraphicDriver.cxx
OpenGl_GraphicDriver_4.cxx
OpenGl_GraphicDriver_7.cxx
OpenGl_GraphicDriver_713.cxx
OpenGl_GraphicDriver_Export.cxx
OpenGl_GraphicDriver_Layer.cxx
OpenGl_Workspace.cxx
OpenGl_Workspace_2.cxx
BOPDS_DS.cxx
DrawTrSurf_Drawable.cxx
TNaming.cxx
DEFINE_STANDARD_HANDLECLASS
OpenGl_GraphicDriver.cxx
OpenGl_GraphicDriver_4.cxx
OpenGl_GraphicDriver_7.cxx
OpenGl_GraphicDriver_713.cxx
OpenGl_GraphicDriver_Export.cxx
OpenGl_GraphicDriver_Layer.cxx
OpenGl_Workspace.cxx
OpenGl_Workspace_2.cxx
BOPDS_DS.cxx
DrawTrSurf_Drawable.cxx
TNaming.cxx
Public activity
1 archived note
Participants are labeled by their role within this record.
Dear Commenter 1,
please close the issue.
please close the issue.