New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Jul 1 22:17:12 PDT 2015


Hi,

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

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


** CID 1309071:  Error handling issues  (UNCAUGHT_EXCEPT)
/dbaccess/source/core/api/StaticSet.cxx: 299 in dbaccess::OStaticSet::updateRow(const rtl::Reference<connectivity::ORowVector<connectivity::ORowSetValue>> &, const rtl::Reference<connectivity::ORowVector<connectivity::ORowSetValue>> &, const com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier> &)()


________________________________________________________________________________________________________
*** CID 1309071:  Error handling issues  (UNCAUGHT_EXCEPT)
/dbaccess/source/core/api/StaticSet.cxx: 299 in dbaccess::OStaticSet::updateRow(const rtl::Reference<connectivity::ORowVector<connectivity::ORowSetValue>> &, const rtl::Reference<connectivity::ORowVector<connectivity::ORowSetValue>> &, const com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier> &)()
293             m_aSetIter = m_aSet.end() - 1;
294             ((*m_aSetIter)->get())[0] = (_rInsertRow->get())[0] = getBookmark();
295             m_bEnd = false;
296         }
297     }
298     
>>>     CID 1309071:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException, com::sun::star::sdbc::SQLException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
299     void SAL_CALL OStaticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable  ) throw(SQLException, RuntimeException)
300     {
301         OCacheSet::updateRow( _rInsertRow,_rOriginalRow,_xTable);
302     }
303     
304     void SAL_CALL OStaticSet::deleteRow(const ORowSetRow& _rDeleteRow ,const connectivity::OSQLTable& _xTable  ) throw(SQLException, RuntimeException)

** CID 1309070:  Error handling issues  (UNCAUGHT_EXCEPT)
/helpcompiler/source/HelpLinker_main.cxx: 26 in main()


________________________________________________________________________________________________________
*** CID 1309070:  Error handling issues  (UNCAUGHT_EXCEPT)
/helpcompiler/source/HelpLinker_main.cxx: 26 in main()
20     #include <HelpCompiler.hxx>
21     #include <HelpLinker.hxx>
22     #include <iostream>
23     #include <sal/main.h>
24     #include <boost/scoped_ptr.hpp>
25     
>>>     CID 1309070:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::length_error" is thrown and never caught.
26     SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
27         std::vector<std::string> args;
28         for (int i = 1; i < argc; ++i)
29             args.push_back(std::string(argv[i]));
30         try
31         {

** CID 1309069:  Error handling issues  (UNCAUGHT_EXCEPT)
/filter/source/svg/test/svg2odf.cxx: 67 in main()


________________________________________________________________________________________________________
*** CID 1309069:  Error handling issues  (UNCAUGHT_EXCEPT)
/filter/source/svg/test/svg2odf.cxx: 67 in main()
61             {
62                 maFile.close();
63             }
64         };
65     }
66     
>>>     CID 1309069:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::length_error" is thrown and never caught.
67     SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
68     {
69         if( argc != 4 )
70         {
71             OSL_TRACE( "Invocation: svg2odf <base_url> <dst_url> <ini_file>. Exiting" );
72             return 1;

** CID 1309068:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/ftp/ftpurl.cxx: 597 in ftp::FTPURL::direntry() const()


________________________________________________________________________________________________________
*** CID 1309068:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/ftp/ftpurl.cxx: 597 in ftp::FTPURL::direntry() const()
591     
592         curl_slist_free_all(slist);
593         return aNetTitle;
594     }
595     
596     
>>>     CID 1309068:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(ftp::curl_exception, ftp::malformed_exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
597     FTPDirentry FTPURL::direntry() const
598         throw (curl_exception, malformed_exception)
599     {
600         OUString nettitle = net_title();
601         FTPDirentry aDirentry;
602     

** CID 1309067:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/accessibility/AccessibleShape.cxx: 1156 in accessibility::AccessibleShape::CreateAccessibleName()()


________________________________________________________________________________________________________
*** CID 1309067:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/accessibility/AccessibleShape.cxx: 1156 in accessibility::AccessibleShape::CreateAccessibleName()()
1150         throw (::com::sun::star::uno::RuntimeException, std::exception)
1151     {
1152         return ShapeTypeHandler::CreateAccessibleBaseName( mxShape );
1153     }
1154     
1155     
>>>     CID 1309067:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
1156     OUString AccessibleShape::CreateAccessibleName()
1157         throw (::com::sun::star::uno::RuntimeException)
1158     {
1159         return GetFullAccessibleName(this);
1160     }
1161     

** CID 1309066:  Error handling issues  (UNCAUGHT_EXCEPT)
/pyuno/source/module/pyuno_runtime.cxx: 304 in pyuno::Runtime::initialize(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()


________________________________________________________________________________________________________
*** CID 1309066:  Error handling issues  (UNCAUGHT_EXCEPT)
/pyuno/source/module/pyuno_runtime.cxx: 304 in pyuno::Runtime::initialize(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
298             fclose( me->cargo->logFile );
299         delete me->cargo;
300         PyObject_Del (self);
301     }
302     
303     
>>>     CID 1309066:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
304     void Runtime::initialize( const Reference< XComponentContext > & ctx )
305         throw ( RuntimeException )
306     {
307         PyRef globalDict, runtime;
308         getRuntimeImpl( globalDict , runtime );
309         RuntimeImpl *impl = reinterpret_cast< RuntimeImpl * > (runtime.get());

** CID 1309065:    (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2110 in webdav_ucp::Content::post(const com::sun::star::ucb::PostCommandArgument2 &, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2110 in webdav_ucp::Content::post(const com::sun::star::ucb::PostCommandArgument2 &, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()


________________________________________________________________________________________________________
*** CID 1309065:    (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2110 in webdav_ucp::Content::post(const com::sun::star::ucb::PostCommandArgument2 &, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()
2104         }
2105     
2106         return aRet;
2107     }
2108     
2109     
>>>     CID 1309065:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
2110     void Content::post(
2111                     const ucb::PostCommandArgument2 & rArg,
2112                     const uno::Reference< ucb::XCommandEnvironment > & xEnv )
2113         throw( uno::Exception )
2114     {
2115         uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY );
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2110 in webdav_ucp::Content::post(const com::sun::star::ucb::PostCommandArgument2 &, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()
2104         }
2105     
2106         return aRet;
2107     }
2108     
2109     
>>>     CID 1309065:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
2110     void Content::post(
2111                     const ucb::PostCommandArgument2 & rArg,
2112                     const uno::Reference< ucb::XCommandEnvironment > & xEnv )
2113         throw( uno::Exception )
2114     {
2115         uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY );

** CID 1309064:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/core/ucbcmds.cxx: 1205 in <unnamed>::globalTransfer_(const <unnamed>::TransferCommandContext &, const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &, const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &, const com::sun::star::uno::Reference<com::sun::star::sdbc::XRow> &)()


________________________________________________________________________________________________________
*** CID 1309064:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/core/ucbcmds.cxx: 1205 in <unnamed>::globalTransfer_(const <unnamed>::TransferCommandContext &, const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &, const com::sun::star::uno::Reference<com::sun::star::ucb::XContent> &, const com::sun::star::uno::Reference<com::sun::star::sdbc::XRow> &)()
1199                 rContext.xOrigEnv );
1200             // Unreachable
1201         }
1202     }
1203     
1204     
>>>     CID 1309064:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
1205     void globalTransfer_(
1206             const TransferCommandContext & rContext,
1207             const uno::Reference< ucb::XContent > & xSource,
1208             const uno::Reference< ucb::XContent > & xTarget,
1209             const uno::Reference< sdbc::XRow > & xSourceProps )
1210         throw( uno::Exception )

** CID 1309063:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2814 in webdav_ucp::Content::unlock(const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()


________________________________________________________________________________________________________
*** CID 1309063:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2814 in webdav_ucp::Content::unlock(const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()
2808             cancelCommandExecution( e, Environment, false );
2809             // Unreachable
2810         }
2811     }
2812     
2813     
>>>     CID 1309063:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
2814     void Content::unlock(
2815             const uno::Reference< ucb::XCommandEnvironment >& Environment )
2816         throw( uno::Exception )
2817     {
2818         try
2819         {

** CID 1309062:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/fmcomp/gridctrl.cxx: 275 in FmXGridSourcePropListener::_propertyChanged(const com::sun::star::beans::PropertyChangeEvent &)()


________________________________________________________________________________________________________
*** CID 1309062:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/fmcomp/gridctrl.cxx: 275 in FmXGridSourcePropListener::_propertyChanged(const com::sun::star::beans::PropertyChangeEvent &)()
269         ,m_pParent(_pParent)
270         ,m_nSuspended(0)
271     {
272         DBG_ASSERT(m_pParent, "FmXGridSourcePropListener::FmXGridSourcePropListener : invalid parent !");
273     }
274     
>>>     CID 1309062:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
275     void FmXGridSourcePropListener::_propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException )
276     {
277         DBG_ASSERT(m_nSuspended>=0, "FmXGridSourcePropListener::_propertyChanged : resume > suspend !");
278         if (m_nSuspended <= 0)
279             m_pParent->DataSourcePropertyChanged(evt);
280     }

** CID 1309061:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/ui/vba/excelvbahelper.cxx: 283 in ooo::vba::excel::getUnoSheetModuleObj(const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, short)()


________________________________________________________________________________________________________
*** CID 1309061:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/ui/vba/excelvbahelper.cxx: 283 in ooo::vba::excel::getUnoSheetModuleObj(const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, short)()
277         uno::Reference< sheet::XSheetCellRange > xSheetRange( xCell, uno::UNO_QUERY_THROW );
278         uno::Reference< sheet::XSpreadsheet > xSheet( xSheetRange->getSpreadsheet(), uno::UNO_SET_THROW );
279         return getUnoSheetModuleObj( xSheet );
280     }
281     
282     uno::Reference< XHelperInterface >
>>>     CID 1309061:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
283     getUnoSheetModuleObj( const uno::Reference< frame::XModel >& xModel, SCTAB nTab ) throw ( uno::RuntimeException )
284     {
285         uno::Reference< sheet::XSpreadsheetDocument > xDoc( xModel, uno::UNO_QUERY_THROW );
286         uno::Reference< container::XIndexAccess > xSheets( xDoc->getSheets(), uno::UNO_QUERY_THROW );
287         uno::Reference< sheet::XSpreadsheet > xSheet( xSheets->getByIndex( nTab ), uno::UNO_QUERY_THROW );
288         return getUnoSheetModuleObj( xSheet );

** CID 1309060:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2773 in webdav_ucp::Content::lock(const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()


________________________________________________________________________________________________________
*** CID 1309060:  Error handling issues  (UNCAUGHT_EXCEPT)
/ucb/source/ucp/webdav-neon/webdavcontent.cxx: 2773 in webdav_ucp::Content::lock(const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> &)()
2767             }
2768         }
2769         return false;
2770     }
2771     
2772     
>>>     CID 1309060:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
2773     void Content::lock(
2774             const uno::Reference< ucb::XCommandEnvironment >& Environment )
2775         throw( uno::Exception )
2776     {
2777         try
2778         {

** CID 1309059:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/slideshow/slideshowimpl.cxx: 3296 in sd::PresentationSettingsEx::SetArguments(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()


________________________________________________________________________________________________________
*** CID 1309059:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/slideshow/slideshowimpl.cxx: 3296 in sd::PresentationSettingsEx::SetArguments(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()
3290     , mbRehearseTimings(false)
3291     , mbPreview(false)
3292     , mpParentWindow(0)
3293     {
3294     }
3295     
>>>     CID 1309059:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
3296     void PresentationSettingsEx::SetArguments( const Sequence< PropertyValue >& rArguments ) throw (IllegalArgumentException)
3297     {
3298         sal_Int32 nArguments = rArguments.getLength();
3299         const PropertyValue* pValue = rArguments.getConstArray();
3300     
3301         while( nArguments-- )

** CID 1309058:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/ui/vba/vbaeventshelper.cxx: 688 in ScVbaEventsHelper::implBuildArgumentList(const VbaEventsHelperBase::EventHandlerInfo &, const com::sun::star::uno::Sequence<com::sun::star::uno::Any> &)()


________________________________________________________________________________________________________
*** CID 1309058:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/ui/vba/vbaeventshelper.cxx: 688 in ScVbaEventsHelper::implBuildArgumentList(const VbaEventsHelperBase::EventHandlerInfo &, const com::sun::star::uno::Sequence<com::sun::star::uno::Any> &)()
682                 rEventQueue.push_back( EventQueueEntry( rInfo.mnEventId + USERDEFINED_START, rArgs ) );
683         }
684     
685         return bExecuteEvent;
686     }
687     
>>>     CID 1309058:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
688     uno::Sequence< uno::Any > ScVbaEventsHelper::implBuildArgumentList( const EventHandlerInfo& rInfo,
689             const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException)
690     {
691         // fill arguments for workbook events associated to sheet events according to sheet events, sheet will be added below
692         bool bSheetEventAsBookEvent = rInfo.mnEventId > USERDEFINED_START;
693         sal_Int32 nEventId = bSheetEventAsBookEvent ? (rInfo.mnEventId - USERDEFINED_START) : rInfo.mnEventId;

** CID 1309057:  Error handling issues  (UNCAUGHT_EXCEPT)
/filter/source/svg/svgexport.cxx: 525 in SVGFilter::implExport(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()


________________________________________________________________________________________________________
*** CID 1309057:  Error handling issues  (UNCAUGHT_EXCEPT)
/filter/source/svg/svgexport.cxx: 525 in SVGFilter::implExport(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()
519     
520     
521     
522     // - SVGFilter -
523     
524     
>>>     CID 1309057:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
525     bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor )
526         throw (RuntimeException)
527     {
528         Reference< XComponentContext >      xContext( ::comphelper::getProcessComponentContext() ) ;
529         Reference< XOutputStream >          xOStm;
530         boost::scoped_ptr<SvStream>         pOStm;

** CID 1309056:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unoobj.cxx: 1795 in SwUnoCursorHelper::SetPropertyValues(SwPaM &, const SfxItemPropertySet &, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &, SetAttrMode, bool)()


________________________________________________________________________________________________________
*** CID 1309056:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unoobj.cxx: 1795 in SwUnoCursorHelper::SetPropertyValues(SwPaM &, const SfxItemPropertySet &, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &, SetAttrMode, bool)()
1789         return nWID == FN_UNO_PARA_STYLE ||
1790                nWID == FN_UNO_CHARFMT_SEQUENCE ||
1791                nWID == FN_UNO_NUM_START_VALUE ||
1792                nWID == FN_UNO_NUM_RULES;
1793     }
1794     
>>>     CID 1309056:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException, com::sun::star::lang::WrappedTargetException, com::sun::star::lang::IllegalArgumentException, com::sun::star::beans::PropertyVetoException, com::sun::star::beans::UnknownPropertyException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
1795     void SwUnoCursorHelper::SetPropertyValues(
1796         SwPaM& rPaM, const SfxItemPropertySet& rPropSet,
1797         const uno::Sequence< beans::PropertyValue > &rPropertyValues,
1798         const SetAttrMode nAttrMode, const bool bTableMode)
1799     throw (beans::UnknownPropertyException, beans::PropertyVetoException,
1800             lang::IllegalArgumentException, lang::WrappedTargetException,

** CID 1309055:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unostyle.cxx: 2625 in SwXStyle::GetPropertyValues_Impl(const com::sun::star::uno::Sequence<rtl::OUString> &)()


________________________________________________________________________________________________________
*** CID 1309055:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/core/unocore/unostyle.cxx: 2625 in SwXStyle::GetPropertyValues_Impl(const com::sun::star::uno::Sequence<rtl::OUString> &)()
2619             throw uno::RuntimeException();
2620         }
2621     
2622         return aRet;
2623     }
2624     
>>>     CID 1309055:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException, com::sun::star::lang::WrappedTargetException, com::sun::star::beans::UnknownPropertyException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
2625     uno::Sequence< uno::Any > SAL_CALL SwXStyle::GetPropertyValues_Impl(
2626             const uno::Sequence< OUString > & rPropertyNames )
2627         throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
2628     {
2629         if ( !m_pDoc )
2630             throw uno::RuntimeException();

** CID 1309054:  Error handling issues  (UNCAUGHT_EXCEPT)
/vbahelper/source/vbahelper/vbaeventshelperbase.cxx: 260 in VbaEventsHelperBase::getEventHandlerPath(const VbaEventsHelperBase::EventHandlerInfo &, const com::sun::star::uno::Sequence<com::sun::star::uno::Any> &)()


________________________________________________________________________________________________________
*** CID 1309054:  Error handling issues  (UNCAUGHT_EXCEPT)
/vbahelper/source/vbahelper/vbaeventshelperbase.cxx: 260 in VbaEventsHelperBase::getEventHandlerPath(const VbaEventsHelperBase::EventHandlerInfo &, const com::sun::star::uno::Sequence<com::sun::star::uno::Any> &)()
254         EventHandlerInfoMap::const_iterator aIt = maEventInfos.find( nEventId );
255         if( aIt == maEventInfos.end() )
256             throw lang::IllegalArgumentException();
257         return aIt->second;
258     }
259     
>>>     CID 1309054:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
260     OUString VbaEventsHelperBase::getEventHandlerPath( const EventHandlerInfo& rInfo,
261             const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException)
262     {
263         OUString aModuleName;
264         switch( rInfo.mnModuleType )
265         {

** CID 1309053:  Error handling issues  (UNCAUGHT_EXCEPT)
/svl/source/passwordcontainer/passwordcontainer.cxx: 707 in PasswordContainer::FindUsr(const std::list<NamePassRecord, std::allocator<NamePassRecord>> &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> &)()


________________________________________________________________________________________________________
*** CID 1309053:  Error handling issues  (UNCAUGHT_EXCEPT)
/svl/source/passwordcontainer/passwordcontainer.cxx: 707 in PasswordContainer::FindUsr(const std::list<NamePassRecord, std::allocator<NamePassRecord>> &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> &)()
701     UrlRecord SAL_CALL PasswordContainer::findForName( const OUString& aURL, const OUString& aName, const Reference< XInteractionHandler >& aHandler  ) throw(RuntimeException, std::exception)
702     {
703         return find( aURL, aName, true, aHandler );
704     }
705     
706     
>>>     CID 1309053:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
707     Sequence< UserRecord > PasswordContainer::FindUsr( const list< NamePassRecord >& userlist, const OUString& aName, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException)
708     {
709         sal_uInt32 nInd = 0;
710         for( list< NamePassRecord >::const_iterator aNPIter = userlist.begin();
711              aNPIter != userlist.end();
712              ++aNPIter, ++nInd )

** CID 1309052:  Error handling issues  (UNCAUGHT_EXCEPT)
/svl/source/passwordcontainer/passwordcontainer.cxx: 659 in PasswordContainer::PrivateAdd(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Sequence<rtl::OUString> &, char, const com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> &)()


________________________________________________________________________________________________________
*** CID 1309052:  Error handling issues  (UNCAUGHT_EXCEPT)
/svl/source/passwordcontainer/passwordcontainer.cxx: 659 in PasswordContainer::PrivateAdd(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Sequence<rtl::OUString> &, char, const com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler> &)()
653         ::osl::MutexGuard aGuard( mMutex );
654     
655         PrivateAdd( Url, UserName, Passwords, PERSISTENT_RECORD, aHandler );
656     }
657     
658     
>>>     CID 1309052:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::length_error" is thrown but the throw list "throw(com::sun::star::uno::RuntimeException)" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
659     void PasswordContainer::PrivateAdd( const OUString& Url, const OUString& UserName, const Sequence< OUString >& Passwords, char Mode, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException)
660     {
661         NamePassRecord aRecord( UserName );
662         ::std::vector< OUString > aStorePass = copySequenceToVector( Passwords );
663     
664         if( Mode == PERSISTENT_RECORD )


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/211?tab=overview

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939



More information about the LibreOffice mailing list