New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Feb 8 20:05:58 UTC 2023


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.
9 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 1520804:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/text/itrform2.cxx: 1936 in SwTextFormatter::FormatLine(o3tl::strong_int<int, Tag_TextFrameIndex>)()


________________________________________________________________________________________________________
*** CID 1520804:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/text/itrform2.cxx: 1936 in SwTextFormatter::FormatLine(o3tl::strong_int<int, Tag_TextFrameIndex>)()
1930             if( GetInfo().IsStop() )
1931             {
1932                 m_pCurr->SetLen(TextFrameIndex(0));
1933                 m_pCurr->Height( GetFrameRstHeight() + 1, false );
1934                 m_pCurr->SetRealHeight( GetFrameRstHeight() + 1 );
1935     
>>>     CID 1520804:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "this->m_pFrame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1936                 if (m_pFrame)
1937                 {
1938                     // Don't oversize the line in case of split flys, so we don't try to move the anchor
1939                     // of a precede fly forward, next to its follow.
1940                     bool bHasNonLastFlySplitAnchored = false;
1941                     for (const auto& pFlyFrame : m_pFrame->GetSplitFlyDrawObjs())


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DKT_m_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJilTTA-2FGDg8-2FU3aA83NNrcak8bTwFlkUo5oDZUuBfGq5ppcsXWYFWk9G-2BMjiUQVXYA-2FK81q4iB3fy29w8oAx-2Fs-2BtQ5y1n3cczDQvA4lWpPj0uQJd8VGEg1-2FvcCIaLuq-2F9DyeuC9jizO6unkpgL5xyHBtO5yfQdXI-2BOXae1S91jxKs-3D



More information about the LibreOffice mailing list