New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed May 23 15:58:03 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.
9 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 1435749:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unoobj2.cxx: 301 in UnoActionRemoveContext::~UnoActionRemoveContext()()


________________________________________________________________________________________________________
*** CID 1435749:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unoobj2.cxx: 301 in UnoActionRemoveContext::~UnoActionRemoveContext()()
295         if (m_pDoc)
296         {
297             lcl_RemoveImpl(m_pDoc);
298         }
299     }
300     
>>>     CID 1435749:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::DeploymentException" 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().
301     UnoActionRemoveContext::~UnoActionRemoveContext()
302     {
303         if (m_pDoc)
304         {
305             SwRootFrame *const pRootFrame = m_pDoc->getIDocumentLayoutAccess().GetCurrentLayout();
306             if (pRootFrame)

** CID 1435748:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/crsr/crstrvl.cxx: 995 in SwCursorShell::GotoPrevOutline()()


________________________________________________________________________________________________________
*** CID 1435748:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/crsr/crstrvl.cxx: 995 in SwCursorShell::GotoPrevOutline()()
989         }
990     
991         SwCursor* pCursor = getShellCursor( true );
992         SwNode* pNd = &(pCursor->GetNode());
993         SwOutlineNodes::size_type nPos;
994         bool bRet = false;
>>>     CID 1435748:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "Seek_Entry" without checking return value (as is done elsewhere 13 out of 14 times).
995         rNds.GetOutLineNds().Seek_Entry(pNd, &nPos);
996         if ( nPos == 0 )
997         {
998             nPos = rNds.GetOutLineNds().size();
999             SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::StartWrapped );
1000         }

** CID 1399120:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/crsr/callnk.cxx: 99 in SwCallLink::~SwCallLink()()


________________________________________________________________________________________________________
*** CID 1399120:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/crsr/callnk.cxx: 99 in SwCallLink::~SwCallLink()()
93                     return;
94                 }
95             }
96         }
97     }
98     
>>>     CID 1399120:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::DeploymentException" 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().
99     SwCallLink::~SwCallLink()
100     {
101         if( nNdTyp == SwNodeType::NONE || !rShell.m_bCallChgLnk ) // see ctor
102             return ;
103     
104         // If travelling over Nodes check formats and register them anew at the


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy8xGl5gyG72PKEYksHTP-2BsN-2Fl4tx2dJYI9r1wBExVlY0fdiopRQPS17y51av41VL5KvO9Gw4yxbfkjSZ3rF9AdRnZEST-2Fjm61RX-2F95yJOA9Fiuikt0WsxaWcabmPiXv6vlAKrMx8lCjFZfBBmsc5YDw5625lPLlbO26TNKRAWq-2Fo-3D



More information about the LibreOffice mailing list