New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Mon Oct 28 09:04:42 UTC 2019
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 1455158: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1455158: Null pointer dereferences (FORWARD_NULL)
/sc/source/ui/navipi/content.cxx: 1399 in ScContentTree::DoDrag()()
1393 }
1394 else if ( nType == ScContentId::TABLE )
1395 {
1396 SCTAB nTab;
1397 if ( rSrcDoc.GetTable( aText, nTab ) )
1398 {
>>> CID 1455158: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "pLocalDoc" to "MaxCol", which dereferences it.
1399 ScRange aRange( 0,0,nTab, pLocalDoc->MaxCol(), pLocalDoc->MaxRow(),nTab );
1400 lcl_DoDragCells( pSrcShell, aRange, (ScDragSrc::Navigator | ScDragSrc::Table), this );
1401 }
1402 }
1403 else if ( nType == ScContentId::GRAPHIC || nType == ScContentId::OLEOBJECT ||
1404 nType == ScContentId::DRAWING )
** CID 1455157: Memory - illegal accesses (WRAPPER_ESCAPE)
/sw/source/core/doc/DocumentContentOperationsManager.cxx: 580 in <unnamed>::lcl_CalcBreaks(std::vector<std::pair<unsigned long, int>, std::allocator<std::pair<unsigned long, int>>> &, const SwPaM &, bool)()
________________________________________________________________________________________________________
*** CID 1455157: Memory - illegal accesses (WRAPPER_ESCAPE)
/sw/source/core/doc/DocumentContentOperationsManager.cxx: 580 in <unnamed>::lcl_CalcBreaks(std::vector<std::pair<unsigned long, int>, std::allocator<std::pair<unsigned long, int>>> &, const SwPaM &, bool)()
574 }
575 }
576 while (!startedFields.empty())
577 {
578 auto const& pField(startedFields.top());
579 startedFields.pop();
>>> CID 1455157: Memory - illegal accesses (WRAPPER_ESCAPE)
>>> Using invalidated internal representation of local "startedFields".
580 SwPosition const& rStart(pField->GetMarkStart());
581 std::pair<sal_uLong, sal_Int32> const pos(
582 rStart.nNode.GetIndex(), rStart.nContent.GetIndex());
583 auto it = std::lower_bound(rBreaks.begin(), rBreaks.end(), pos);
584 assert(it == rBreaks.end() || *it != pos);
585 rBreaks.insert(it, pos);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB73RtgzoPcQtNNP5dkHLuV1E-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyOmqbPR5A7psYzrODPfF869iSu3jNlINfssbKwpec5p7laPe1R2ei4rgUq-2BApp92fCJwedtb85bWaGT-2FBlRDg2JxvjD3LiwdtPyQX383AjQl-2FhMJHTwhhye8T8BPkKpHhaXk4c0oeXCgFfM-2FnLw9kET1ynWfgbyI-2B2NtMNrK7poI-3D
More information about the LibreOffice
mailing list