New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Sep 9 09:37:19 UTC 2020


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.
13 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 1466667:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1466667:  Null pointer dereferences  (NULL_RETURNS)
/sw/source/core/doc/DocumentContentOperationsManager.cxx: 3047 in sw::DocumentContentOperationsManager::InsertDrawObj(const SwPaM &, SdrObject &, const SfxItemSet &)()
3041         {
3042             // apply anchor format
3043             SwFormatAnchor aAnch( pAnchor != nullptr ? *pAnchor : pFormat->GetAnchor() );
3044             eAnchorId = aAnch.GetAnchorId();
3045             if ( eAnchorId == RndStdIds::FLY_AT_FLY )
3046             {
>>>     CID 1466667:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "rRg->GetNode(true)->FindFlyStartNode()" when calling "SwPosition".
3047                 SwPosition aPos( *rRg.GetNode().FindFlyStartNode() );
3048                 aAnch.SetAnchor( &aPos );
3049             }
3050             else
3051             {
3052                 aAnch.SetAnchor( rRg.GetPoint() );


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3Dd0MO_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJizsfscrjHdpOjEL-2Bu9nQaUDVeaEe2t4TF9kO0BXuwSixxUchqzfQuw42Kiog8BmT4V6OZcGcpAdMfF5R-2BUmCOfw4hwr34-2BLsRztSVqLypg6SrzztY1TbZLqpDvgDLfGDSiznmyUkZoRgXFAga3TGahB2z9WMVKZPWQeZnkLad-2BGSc5em-2Ft30vseA9uX-2BGqD1i



More information about the LibreOffice mailing list