New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Thu Feb 24 09:28:04 UTC 2022


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
15 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1500743:  Null pointer dereferences  (FORWARD_NULL)
/oox/source/drawingml/diagram/diagramhelper.cxx: 67 in oox::drawingml::AdvancedDiagramHelper::reLayout()()


________________________________________________________________________________________________________
*** CID 1500743:  Null pointer dereferences  (FORWARD_NULL)
/oox/source/drawingml/diagram/diagramhelper.cxx: 67 in oox::drawingml::AdvancedDiagramHelper::reLayout()()
61             // Access the GroupObject representing the SmartArt in DrawingLayer
62             SdrObjGroup* pAnchorObj(dynamic_cast<SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(pParentShape->getXShape())));
63     
64             // Rescue/remember geometric transformation of existing Diagram
65             basegfx::B2DHomMatrix aTransformation;
66             basegfx::B2DPolyPolygon aPolyPolygon;
>>>     CID 1500743:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pAnchorObj" to "TRGetBaseGeometry", which dereferences it. (The dereference happens because this is a virtual function call.)
67             pAnchorObj->TRGetBaseGeometry(aTransformation, aPolyPolygon);
68     
69             // Delete all existing shapes in that group to prepare re-creation
70             pAnchorObj->getChildrenOfSdrObject()->ClearSdrObjList();
71     
72             // For re-creation we need to use ::addShape functionality from the


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DiVeL_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiYApUcVx5m88ohUxBVRlMY5NcqCrmpqefeClx5GxM3ZHirq0qoD2reueWgOFAWTn7jAdTHCVzWYHPjmn4VIAPKZY1nyf4IQoq-2BT997K7mhTDcDh87eNEtCCuaSVAT4hy65EVJ9bsY9L6x1pulFcBMVOZKOCJBvr0BHiuwDgggrQk-3D



More information about the LibreOffice mailing list