New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Feb 18 17:34:17 UTC 2022


Hi,

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

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
4 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 2 of 2 defect(s)


** CID 1500273:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1500273:  Null pointer dereferences  (NULL_RETURNS)
/sw/source/core/layout/flowfrm.cxx: 2346 in SwFlowFrame::MoveBwd(bool &)()
2340             {
2341                 const SwFrame *pCol = m_rThis.FindColFrame();
2342                 bool bGoOn = true;
2343                 bool bJump = false;
2344                 do
2345                 {
>>>     CID 1500273:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pCol" when calling "GetPrev".
2346                     if ( pCol->GetPrev() )
2347                         pCol = pCol->GetPrev();
2348                     else
2349                     {
2350                         bGoOn = false;
2351                         pCol = m_rThis.GetLeaf( MAKEPAGE_NONE, false );

** CID 1500272:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1500272:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/layout/ftnfrm.cxx: 2859 in SwContentFrame::MoveFootnoteCntFwd(bool, SwFootnoteBossFrame *)()
2853                             pTmpNxt->MoveSubTree( pTmpFootnote, pNewUp->GetNext() );
2854                         }
2855                     }
2856                 }
2857             }
2858     
>>>     CID 1500272:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pNewUp" to "Lower", which dereferences it.
2859             MoveSubTree( pNewUp, pNewUp->Lower() );
2860     
2861             if( !bSameBoss )
2862                 Prepare( PrepareHint::BossChanged );
2863         }
2864         return bSamePage;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D3HJt_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiXRtpcTJiPaVi31i6z2m2jKABJxi87n0JLJ67IZ-2BUpv9Hacu-2BnYVdZeKD2ZhZv9m0wM0aC8UL2U2eZUW1NajG0cfCTr4Mu6-2FQusWWfyREsBpsC8PMC0Zy9dG2sKeYv4WWs6KR-2FntsdW5bhTzCPERQsnWVS2KQ1LKcwlJFcR6r5ms-3D



More information about the LibreOffice mailing list