New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Jun 26 04:43:26 UTC 2018


Hi,

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

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


** CID 1437527:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1437527:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/uibase/utlui/content.cxx: 695 in SwContentType::FillMemberList(bool *)()
689                     if(nullptr != pbLevelOrVisibilityChanged)
690                     {
691                         // need to check visibility (and equal entry number) after
692                         // creation due to a sorted list being used here (before,
693                         // entries with same index were compared already at creation
694                         // time what worked before a sorted list was used)
>>>     CID 1437527:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pOldMember" to "checkVisibilityChanged", which dereferences it.
695                         *pbLevelOrVisibilityChanged = checkVisibilityChanged(
696                             *pOldMember,
697                             *pMember);
698                     }
699                 }
700                 nMemberCount = pMember->size();

** CID 1437526:  Error handling issues  (CHECKED_RETURN)
/sc/source/filter/excel/xipivot.cxx: 1488 in XclImpPivotTable::Convert()()


________________________________________________________________________________________________________
*** CID 1437526:  Error handling issues  (CHECKED_RETURN)
/sc/source/filter/excel/xipivot.cxx: 1488 in XclImpPivotTable::Convert()()
1482     
1483         pDPObj->SetSaveData( aSaveData );
1484         pDPObj->SetSheetDesc( aDesc );
1485         pDPObj->SetOutRange( aOutRange );
1486         pDPObj->SetHeaderLayout( maPTViewEx9Info.mnGridLayout == 0 );
1487     
>>>     CID 1437526:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "InsertNewTable" without checking return value (as is done elsewhere 24 out of 27 times).
1488         GetDoc().GetDPCollection()->InsertNewTable(pDPObj);
1489         mpDPObj = pDPObj;
1490     
1491         ApplyFieldInfo();
1492         ApplyMergeFlags(aOutRange, aSaveData);
1493     }

** CID 1209000:  Error handling issues  (CHECKED_RETURN)
/sc/qa/unit/ucalc_pivottable.cxx: 270 in Test::testPivotTable()()


________________________________________________________________________________________________________
*** CID 1209000:  Error handling issues  (CHECKED_RETURN)
/sc/qa/unit/ucalc_pivottable.cxx: 270 in Test::testPivotTable()()
264         printRange(m_pDoc, ScRange(nCol1, nRow1, 0, nCol2, nRow2, 0), "Data sheet content (modified)");
265     
266         // Now, create a copy of the datapilot object for the updated table, but
267         // don't reload the cache which should force the copy to use the old data
268         // from the cache.
269         ScDPObject* pDPObj2 = new ScDPObject(*pDPObj);
>>>     CID 1209000:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "InsertNewTable" without checking return value (as is done elsewhere 24 out of 27 times).
270         pDPs->InsertNewTable(pDPObj2);
271     
272         aOutRange = pDPObj2->GetOutRange();
273         pDPObj2->ClearTableData();
274         pDPObj2->Output(aOutRange.aStart);
275         {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyoWMum4BOPLCbZkP4ElPN2XL5LrZw5vnvCKuYPJxy8gIUr7rlwvayUt-2FCrYAUdNAECsYVNwsRTaTlzWt6WER5VQVXqk4CCYgDEjyskpCU4hJR4Ikq-2FtV7wY8p6Hb9aLkqcgXD4soOrM-2FKLkHqNcen6lUYf5hy8FgBsFCMgU7IIgA-3D



More information about the LibreOffice mailing list