New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Mar 26 16:01:29 UTC 2021


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.
5 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 1474452:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1474452:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/text/itrcrsr.cxx: 1564 in SwTextCursor::GetModelPositionForViewPoint(SwPosition *, const Point &, bool, SwCursorMoveState *) const()
1558                 if ( pPor->IsPostItsPortion() || pPor->IsBreakPortion() ||
1559                      pPor->InToxRefGrp() )
1560                 {
1561                     if (pPor->IsPostItsPortion())
1562                     {
1563                         SwPostItsPortion* pPostItsPortion = dynamic_cast<SwPostItsPortion*>(pPor);
>>>     CID 1474452:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pPostItsPortion" to "IsScript", which dereferences it.
1564                         if (!pPostItsPortion->IsScript()) // tdf#141079
1565                         {
1566                             // Offset would be nCurrStart + nLength below, do the same for post-it portions.
1567                             nCurrStart += pPor->GetLen();
1568                         }
1569                     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DZH6v_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi4ic8m5YRW-2FzSiz1ur2-2B84gF-2BE-2FBnnw5llHIfbJV4FWfDyGu2Zq-2Bn6p0E5KNV4AQ5F2RYL8lVs-2B-2FdRxL8DasNqWxB-2BmgRHr7-2Ff64Unm2jy9ovR-2Fd2ikQkAV5i-2FCXxy5MNhIq1XPdEBb30FA2jkg2gEMd651Z3VpvQ3t1B5fnz69h3apZ0HKS5MReZAEnoHmdP



More information about the LibreOffice mailing list