Hi, Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
8 new defect(s) introduced to LibreOffice found with Coverity Scan. 16 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 8 of 8 defect(s) ** CID 1404884: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/crsr/crsrsh.cxx: 1426 in SwNotifyAccAboutInvalidTextSelections::~SwNotifyAccAboutInvalidTextSelections()() ________________________________________________________________________________________________________ *** CID 1404884: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/crsr/crsrsh.cxx: 1426 in SwNotifyAccAboutInvalidTextSelections::~SwNotifyAccAboutInvalidTextSelections()() 1420 1421 public: 1422 explicit SwNotifyAccAboutInvalidTextSelections( SwCursorShell& _rCursorSh ) 1423 : mrCursorSh( _rCursorSh ) 1424 {} 1425 >>> CID 1404884: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 1426 ~SwNotifyAccAboutInvalidTextSelections() 1427 { 1428 mrCursorSh.InvalidateAccessibleParaTextSelection(); 1429 } 1430 }; 1431 ** CID 1404883: Error handling issues (UNCAUGHT_EXCEPT) /sc/source/ui/app/scmod.cxx: 199 in ScModule::~ScModule()() ________________________________________________________________________________________________________ *** CID 1404883: Error handling issues (UNCAUGHT_EXCEPT) /sc/source/ui/app/scmod.cxx: 199 in ScModule::~ScModule()() 193 SetPool( pMessagePool ); 194 ScGlobal::InitTextHeight( pMessagePool ); 195 196 StartListening( *SfxGetpApp() ); // for SfxHintId::Deinitializing 197 } 198 >>> CID 1404883: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "com::sun::star::uno::RuntimeException" is thrown >>> but the throw list "throw()" doesn't allow it to be thrown. This will cause >>> a call to unexpected() which usually calls terminate(). 199 ScModule::~ScModule() 200 { 201 OSL_ENSURE( !pSelTransfer, "Selection Transfer object not deleted" ); 202 203 // InputHandler does not need to be deleted (there's none in the App anymore) 204 ** CID 1404882: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/docnode/node.cxx: 1006 in SwContentNode::~SwContentNode()() ________________________________________________________________________________________________________ *** CID 1404882: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/docnode/node.cxx: 1006 in SwContentNode::~SwContentNode()() 1000 SwNode( rWhere, nNdType ), 1001 m_pCondColl( nullptr ), 1002 mbSetModifyAtAttr( false ) 1003 { 1004 } 1005 >>> CID 1404882: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 1006 SwContentNode::~SwContentNode() 1007 { 1008 // The base class SwClient of SwFrame excludes itself from the dependency list! 1009 // Thus, we need to delete all Frames in the dependency list. 1010 DelFrames(false); 1011 ** CID 1404881: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/layout/anchoreddrawobject.cxx: 62 in SwPosNotify::~SwPosNotify()() ________________________________________________________________________________________________________ *** CID 1404881: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/layout/anchoreddrawobject.cxx: 62 in SwPosNotify::~SwPosNotify()() 56 { 57 maOldObjRect = mpAnchoredDrawObj->GetObjRect(); 58 // --> #i35640# - determine correct page frame 59 mpOldPageFrame = mpAnchoredDrawObj->GetPageFrame(); 60 } 61 >>> CID 1404881: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 62 SwPosNotify::~SwPosNotify() 63 { 64 if ( maOldObjRect != mpAnchoredDrawObj->GetObjRect() ) 65 { 66 if( maOldObjRect.HasArea() && mpOldPageFrame ) 67 { ** CID 1404880: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/docnode/ndtbl.cxx: 2362 in SwTableNode::~SwTableNode()() ________________________________________________________________________________________________________ *** CID 1404880: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/docnode/ndtbl.cxx: 2362 in SwTableNode::~SwTableNode()() 2356 SwTableNode::SwTableNode( const SwNodeIndex& rIdx ) 2357 : SwStartNode( rIdx, SwNodeType::Table ) 2358 { 2359 m_pTable = new SwTable; 2360 } 2361 >>> CID 1404880: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 2362 SwTableNode::~SwTableNode() 2363 { 2364 // Notify UNO wrappers 2365 SwFrameFormat* pTableFormat = GetTable().GetFrameFormat(); 2366 SwPtrMsgPoolItem aMsgHint( RES_REMOVE_UNO_OBJECT, 2367 pTableFormat ); ** CID 1404879: (UNCAUGHT_EXCEPT) /sw/source/core/layout/frmtool.cxx: 443 in SwLayNotify::~SwLayNotify()() /sw/source/core/layout/frmtool.cxx: 443 in SwLayNotify::~SwLayNotify()() ________________________________________________________________________________________________________ *** CID 1404879: (UNCAUGHT_EXCEPT) /sw/source/core/layout/frmtool.cxx: 443 in SwLayNotify::~SwLayNotify()() 437 pLowerFrame->InvalidateObjs( false ); 438 439 pLowerFrame = pLowerFrame->GetNext(); 440 } 441 } 442 >>> CID 1404879: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 443 SwLayNotify::~SwLayNotify() 444 { 445 SwLayoutFrame *pLay = static_cast<SwLayoutFrame*>(mpFrame); 446 SwRectFnSet aRectFnSet(pLay); 447 bool bNotify = false; 448 if ( pLay->Prt().SSize() != maPrt.SSize() ) /sw/source/core/layout/frmtool.cxx: 443 in SwLayNotify::~SwLayNotify()() 437 pLowerFrame->InvalidateObjs( false ); 438 439 pLowerFrame = pLowerFrame->GetNext(); 440 } 441 } 442 >>> CID 1404879: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 443 SwLayNotify::~SwLayNotify() 444 { 445 SwLayoutFrame *pLay = static_cast<SwLayoutFrame*>(mpFrame); 446 SwRectFnSet aRectFnSet(pLay); 447 bool bNotify = false; 448 if ( pLay->Prt().SSize() != maPrt.SSize() ) ** CID 1404878: (UNCAUGHT_EXCEPT) /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() ________________________________________________________________________________________________________ *** CID 1404878: (UNCAUGHT_EXCEPT) /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() 96 mnFlyAnchorOfstNoWrap = 0; 97 } 98 99 mbHadFollow = pF->IsContentFrame() && static_cast<SwContentFrame*>(pF)->GetFollow(); 100 } 101 >>> CID 1404878: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 102 SwFrameNotify::~SwFrameNotify() 103 { 104 SwRectFnSet aRectFnSet(mpFrame); 105 const bool bAbsP = aRectFnSet.PosDiff(maFrame, mpFrame->Frame()); 106 const bool bChgWidth = 107 aRectFnSet.GetWidth(maFrame) != aRectFnSet.GetWidth(mpFrame->Frame()); /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() 96 mnFlyAnchorOfstNoWrap = 0; 97 } 98 99 mbHadFollow = pF->IsContentFrame() && static_cast<SwContentFrame*>(pF)->GetFollow(); 100 } 101 >>> CID 1404878: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 102 SwFrameNotify::~SwFrameNotify() 103 { 104 SwRectFnSet aRectFnSet(mpFrame); 105 const bool bAbsP = aRectFnSet.PosDiff(maFrame, mpFrame->Frame()); 106 const bool bChgWidth = 107 aRectFnSet.GetWidth(maFrame) != aRectFnSet.GetWidth(mpFrame->Frame()); /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() 96 mnFlyAnchorOfstNoWrap = 0; 97 } 98 99 mbHadFollow = pF->IsContentFrame() && static_cast<SwContentFrame*>(pF)->GetFollow(); 100 } 101 >>> CID 1404878: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 102 SwFrameNotify::~SwFrameNotify() 103 { 104 SwRectFnSet aRectFnSet(mpFrame); 105 const bool bAbsP = aRectFnSet.PosDiff(maFrame, mpFrame->Frame()); 106 const bool bChgWidth = 107 aRectFnSet.GetWidth(maFrame) != aRectFnSet.GetWidth(mpFrame->Frame()); /sw/source/core/layout/frmtool.cxx: 102 in SwFrameNotify::~SwFrameNotify()() 96 mnFlyAnchorOfstNoWrap = 0; 97 } 98 99 mbHadFollow = pF->IsContentFrame() && static_cast<SwContentFrame*>(pF)->GetFollow(); 100 } 101 >>> CID 1404878: (UNCAUGHT_EXCEPT) >>> An exception of type "o3tl::divide_by_zero" is thrown but the throw >>> list "throw()" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 102 SwFrameNotify::~SwFrameNotify() 103 { 104 SwRectFnSet aRectFnSet(mpFrame); 105 const bool bAbsP = aRectFnSet.PosDiff(maFrame, mpFrame->Frame()); 106 const bool bChgWidth = 107 aRectFnSet.GetWidth(maFrame) != aRectFnSet.GetWidth(mpFrame->Frame()); ** CID 1404877: Error handling issues (CHECKED_RETURN) /filter/source/xmlfilterdetect/filterdetect.cxx: 58 in <unnamed>::IsMediaTypeXML(const rtl::OUString &)() ________________________________________________________________________________________________________ *** CID 1404877: Error handling issues (CHECKED_RETURN) /filter/source/xmlfilterdetect/filterdetect.cxx: 58 in <unnamed>::IsMediaTypeXML(const rtl::OUString &)() 52 53 bool IsMediaTypeXML( const OUString& mediaType ) 54 { 55 if (!mediaType.isEmpty()) 56 { 57 OUString sType, sSubType; >>> CID 1404877: Error handling issues (CHECKED_RETURN) >>> Calling "parse" without checking return value (as is done elsewhere 15 >>> out of 16 times). 58 INetContentTypes::parse(mediaType, sType, sSubType); 59 if (sType == "application") 60 { 61 // RFC 3023: application/xml; don't detect text/xml 62 if (sSubType == "xml") 63 return true; ________________________________________________________________________________________________________ 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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyK-2Fs7UZh0mX-2BGA62VcSt3ZlOZOTghK756m-2FTwtx8TtTzhwSKKYkrd-2BGBP4NUi16FR-2BkETliL-2FZSVtvldeyfu745JgHFM9S2VQxw8ySDla9wQsjtwdKkl-2F-2FUW4vhvSHlxBe5MgeI7my-2FpQXMDq7QJ-2F4ipUygSPgll8K8qK5Na-2F7hk-3D To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyK-2Fs7UZh0mX-2BGA62VcSt3ZsF-2Bwu05rlMQjZg044Pl5J0tu8b9dTytNREMzJXbxGGzyxZbrtoLj0M7aZchzHJB5kdNXI5O0DRAf-2Bja5eLwJgdAVpP7zhr1loSCz36-2BMYEuFEbCD5JjoD7yyLSgG75GAHf9mvycNfgE8wNJ77s5nJg-3D _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice