New Defects reported by Coverity Scan for LibreOffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


________________________________________________________________________________________________________
*** CID 1470587:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/layout/flyincnt.cxx: 121 in SwFlyInContentFrame::SwClientNotify(const SwModify &, const SfxHint &)()
115                     {
116                         aTweakedChgs.first = std::make_unique<SwAttrSetChg>(*pOldAttrSetChg);
117                         aTweakedChgs.first->ClearItem(RES_SURROUND);
118                         aTweakedChgs.first->ClearItem(RES_FRMMACRO);
119                         aSuperArgs = std::pair<const SfxPoolItem*, const SfxPoolItem*>(aTweakedChgs.first.get(), aTweakedChgs.second.get());
120                     }
>>>     CID 1470587:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pNewAttrSetChg" to "GetChgSet", which dereferences it.
121                 } else if(pNewAttrSetChg->GetChgSet()->Count())
122                     aSuperArgs = std::pair<const SfxPoolItem*, const SfxPoolItem*>(pLegacy->m_pOld, pLegacy->m_pNew);
123                 break;
124             }
125             case RES_SURROUND:
126             case RES_FRMMACRO:

** CID 1470586:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1470586:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/layout/flylay.cxx: 771 in SwFlyLayFrame::SwClientNotify(const SwModify &, const SfxHint &)()
765                 pTmpPage = static_cast<SwPageFrame*>(pTmpPage->GetNext());
766                 --nPagesToFlip;
767             }
768             if(!nPagesToFlip)
769             {
770                 // #i50432# - adjust synopsis of <PlaceFly(..)>
>>>     CID 1470586:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pTmpPage" to "PlaceFly", which dereferences it.
771                 pTmpPage->PlaceFly(this, nullptr);
772             }
773             if(!pTmpPage)
774             {
775                 pRoot->SetAssertFlyPages();
776                 pRoot->AssertFlyPages();

** CID 1470585:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1470585:  Null pointer dereferences  (NULL_RETURNS)
/sw/source/core/edit/edtab.cxx: 170 in SwEditShell::TableToText(char16_t)()
164         // tell the charts about the table to be deleted and have them use their own data
165         GetDoc()->getIDocumentChartDataProviderAccess().CreateChartInternalDataProviders( &pTableNd->GetTable() );
166     
167         StartAllAction();
168     
169         // move current Cursor out of the listing area
>>>     CID 1470585:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pTableNd" when calling "SwNodeIndex".
170         SwNodeIndex aTabIdx( *pTableNd );
171         pCursor->DeleteMark();
172         pCursor->GetPoint()->nNode = *pTableNd->EndOfSectionNode();
173         pCursor->GetPoint()->nContent.Assign( nullptr, 0 );
174         // move sPoint and Mark out of the area!
175         pCursor->SetMark();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D2cFJ_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiUKqysL9Tib2JVVvn4NbopvtGvq5SIc-2FWzbQeN1BoSWZN6yJIMHGa2oweC8-2FroAUJ08zDOVPUA5x15ARyieYwkTAYXGBkqHF3spnbvoQOqcCoydr7zET-2BWyX-2FHLsqVxB57-2FKaCd-2Bh5MAUv9kfx3JKY13q6g2cOYaoCYee3eTzRlH82rXwl-2FJAWA1P6UVGwSsp

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux