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. 23 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 1339308: Error handling issues (UNCAUGHT_EXCEPT) /l10ntools/source/localize.cxx: 456 in main() ________________________________________________________________________________________________________ *** CID 1339308: Error handling issues (UNCAUGHT_EXCEPT) /l10ntools/source/localize.cxx: 456 in main() 450 throw false; //TODO 451 } 452 handleDirectory(rootUrl, 0, OString(), OString(sDestRoot)); 453 } 454 } 455 >>> CID 1339308: Error handling issues (UNCAUGHT_EXCEPT) >>> In function "main(int, char **)" an exception of type >>> "PoIfstream::Exception" is thrown and never caught. 456 SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) 457 { 458 try 459 { 460 if (argc != 3) 461 { ** CID 1339307: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/unocore/unoobj.cxx: 210 in lcl_setCharStyle(SwDoc *, const com::sun::star::uno::Any &, SfxItemSet &)() ________________________________________________________________________________________________________ *** CID 1339307: Error handling issues (UNCAUGHT_EXCEPT) /sw/source/core/unocore/unoobj.cxx: 210 in lcl_setCharStyle(SwDoc *, const com::sun::star::uno::Any &, SfxItemSet &)() 204 } 205 xWrt->bShowProgress = bOldShowProgress; 206 } 207 } 208 209 static void >>> CID 1339307: Error handling issues (UNCAUGHT_EXCEPT) >>> An exception of type "com::sun::star::uno::RuntimeException" is thrown >>> but the throw list "throw(com::sun::star::lang::IllegalArgumentException, >>> std::exception)" doesn't allow it to be thrown. This will cause a call to >>> unexpected() which usually calls terminate(). 210 lcl_setCharStyle(SwDoc *const pDoc, const uno::Any & rValue, SfxItemSet & rSet) 211 throw (lang::IllegalArgumentException, std::exception) 212 { 213 SwDocShell *const pDocSh = pDoc->GetDocShell(); 214 if(pDocSh) 215 { ** CID 1339306: API usage errors (INVALIDATE_ITERATOR) /sc/source/ui/dbgui/tpsort.cxx: 465 in ScTabPageSortFields::SelectHdl(ListBox &)() ________________________________________________________________________________________________________ *** CID 1339306: API usage errors (INVALIDATE_ITERATOR) /sc/source/ui/dbgui/tpsort.cxx: 465 in ScTabPageSortFields::SelectHdl(ListBox &)() 459 for ( pIter = maSortKeyItems.begin(); pIter != maSortKeyItems.end(); ++pIter ) 460 { 461 if ( (*pIter)->m_pLbSort == &rLb ) break; 462 } 463 464 // If not selecting the last Listbox, modify the succeeding ones >>> CID 1339306: API usage errors (INVALIDATE_ITERATOR) >>> Incrementing iterator "pIter" though it is already past the end of its >>> container. 465 ++pIter; 466 if ( std::distance(maSortKeyItems.begin(), pIter) < nSortKeyCount ) 467 { 468 if ( aSelEntry == aStrUndefined ) 469 { 470 for ( ; pIter != maSortKeyItems.end(); ++pIter ) ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939 _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice