New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Nov 15 02:55:51 UTC 2017


Hi,

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

121 new defect(s) introduced to LibreOffice found with Coverity Scan.
19 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 121 defect(s)


** CID 1421169:  Error handling issues  (UNCAUGHT_EXCEPT)
/connectivity/source/inc/java/GlobalRef.hxx: 58 in connectivity::jdbc::GlobalRef<_jobject *>::~GlobalRef()()


________________________________________________________________________________________________________
*** CID 1421169:  Error handling issues  (UNCAUGHT_EXCEPT)
/connectivity/source/inc/java/GlobalRef.hxx: 58 in connectivity::jdbc::GlobalRef<_jobject *>::~GlobalRef()()
52     
53                 SDBThreadAttach t;
54                 set( t.env(), _source.get() );
55                 return *this;
56             }
57     
>>>     CID 1421169:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "jvmaccess::VirtualMachine::AttachGuard::CreationException" 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().
58             ~GlobalRef()
59             {
60                 reset();
61             }
62     
63             void reset()

** CID 1421168:  Error handling issues  (UNCAUGHT_EXCEPT)
/starmath/source/tmpdevice.hxx: 37 in SmTmpDevice::~SmTmpDevice()()


________________________________________________________________________________________________________
*** CID 1421168:  Error handling issues  (UNCAUGHT_EXCEPT)
/starmath/source/tmpdevice.hxx: 37 in SmTmpDevice::~SmTmpDevice()()
31         SmTmpDevice& operator=(const SmTmpDevice&) = delete;
32     
33         Color   Impl_GetColor( const Color& rColor );
34     
35     public:
36         SmTmpDevice(OutputDevice &rTheDev, bool bUseMap100th_mm);
>>>     CID 1421168:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_rational> >" 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().
37         ~SmTmpDevice()  { rOutDev.Pop(); }
38     
39         void SetFont(const vcl::Font &rNewFont);
40     
41         void SetLineColor( const Color& rColor )    { rOutDev.SetLineColor( Impl_GetColor(rColor) ); }
42         void SetFillColor( const Color& rColor )    { rOutDev.SetFillColor( Impl_GetColor(rColor) ); }

** CID 1421167:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap3.cxx: 60 in Svx3DSceneObject::Svx3DSceneObject(SdrObject *, SvxDrawPage *)()


________________________________________________________________________________________________________
*** CID 1421167:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap3.cxx: 60 in Svx3DSceneObject::Svx3DSceneObject(SdrObject *, SvxDrawPage *)()
54     using namespace ::com::sun::star::container;
55     
56     #define QUERYINT( xint ) \
57         if( rType == cppu::UnoType<xint>::get() ) \
58             aAny <<= Reference< xint >(this)
59     
>>>     CID 1421167:  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().
60     Svx3DSceneObject::Svx3DSceneObject( SdrObject* pObj, SvxDrawPage* pDrawPage ) throw()
61     :   SvxShape( pObj, getSvxMapProvider().GetMap(SVXMAP_3DSCENEOBJECT), getSvxMapProvider().GetPropertySet(SVXMAP_3DSCENEOBJECT, SdrObject::GetGlobalDrawObjectItemPool()) )
62     ,   mxPage( pDrawPage )
63     {
64     }
65     

** CID 1421166:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap4.cxx: 66 in SvxOle2Shape::SvxOle2Shape(SdrObject *)()


________________________________________________________________________________________________________
*** CID 1421166:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap4.cxx: 66 in SvxOle2Shape::SvxOle2Shape(SdrObject *)()
60     using namespace ::com::sun::star::uno;
61     using namespace ::com::sun::star::lang;
62     using namespace ::com::sun::star::container;
63     using namespace ::com::sun::star::beans;
64     
65     
>>>     CID 1421166:  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().
66     SvxOle2Shape::SvxOle2Shape( SdrObject* pObject ) throw()
67     : SvxShapeText( pObject, getSvxMapProvider().GetMap(SVXMAP_OLE2),
68                     getSvxMapProvider().GetPropertySet(SVXMAP_OLE2,SdrObject::GetGlobalDrawObjectItemPool()) )
69     {
70     }
71     

** CID 1421165:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/extras/tiledrendering/tiledrendering.cxx: 1835 in SwTiledRenderingTest::testAllTrackedChanges()()


________________________________________________________________________________________________________
*** CID 1421165:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/extras/tiledrendering/tiledrendering.cxx: 1835 in SwTiledRenderingTest::testAllTrackedChanges()()
1829         // view #1
1830         SwView* pView1 = dynamic_cast<SwView*>(SfxViewShell::Current());
1831         SwWrtShell* pWrtShell1 = pView1->GetWrtShellPtr();
1832     
1833         // view #2
1834         SfxLokHelper::createView();
>>>     CID 1421165:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "pView2" = "dynamic_cast <SwView *>(SfxViewShell::Current())".
1835         SwView* pView2 = dynamic_cast<SwView*>(SfxViewShell::Current());
1836         CPPUNIT_ASSERT(pView1 != pView2);
1837         SwWrtShell* pWrtShell2 = pView2->GetWrtShellPtr();
1838         // Insert text and reject all
1839         {
1840             pWrtShell1->SttDoc();

** CID 1421164:    (UNCAUGHT_EXCEPT)
/sw/source/filter/ww8/ww8par3.cxx: 1461 in WW8ListManager::~WW8ListManager()()
/sw/source/filter/ww8/ww8par3.cxx: 1461 in WW8ListManager::~WW8ListManager()()


________________________________________________________________________________________________________
*** CID 1421164:    (UNCAUGHT_EXCEPT)
/sw/source/filter/ww8/ww8par3.cxx: 1461 in WW8ListManager::~WW8ListManager()()
1455             }
1456         }
1457         // and we're done!
1458         rSt.Seek( nOriginalPos );
1459     }
1460     
>>>     CID 1421164:    (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().
1461     WW8ListManager::~WW8ListManager()
1462     {
1463         /*
1464          named lists remain in document
1465          unused automatic lists are removed from document (DelNumRule)
1466         */
/sw/source/filter/ww8/ww8par3.cxx: 1461 in WW8ListManager::~WW8ListManager()()
1455             }
1456         }
1457         // and we're done!
1458         rSt.Seek( nOriginalPos );
1459     }
1460     
>>>     CID 1421164:    (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().
1461     WW8ListManager::~WW8ListManager()
1462     {
1463         /*
1464          named lists remain in document
1465          unused automatic lists are removed from document (DelNumRule)
1466         */

** CID 1421163:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/extras/tiledrendering/tiledrendering.cxx: 1830 in SwTiledRenderingTest::testAllTrackedChanges()()


________________________________________________________________________________________________________
*** CID 1421163:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/extras/tiledrendering/tiledrendering.cxx: 1830 in SwTiledRenderingTest::testAllTrackedChanges()()
1824         createDoc("dummy.fodt");
1825     
1826         uno::Reference<beans::XPropertySet> xPropSet(mxComponent, uno::UNO_QUERY);
1827         xPropSet->setPropertyValue("RecordChanges", uno::makeAny(true));
1828     
1829         // view #1
>>>     CID 1421163:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "pView1" = "dynamic_cast <SwView *>(SfxViewShell::Current())".
1830         SwView* pView1 = dynamic_cast<SwView*>(SfxViewShell::Current());
1831         SwWrtShell* pWrtShell1 = pView1->GetWrtShellPtr();
1832     
1833         // view #2
1834         SfxLokHelper::createView();
1835         SwView* pView2 = dynamic_cast<SwView*>(SfxViewShell::Current());

** CID 1421162:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/unoidl/unoobj.cxx: 265 in SdXShape::SdXShape(SvxShape *, SdXImpressDocument *)()


________________________________________________________________________________________________________
*** CID 1421162:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/unoidl/unoobj.cxx: 265 in SdXShape::SdXShape(SvxShape *, SdXImpressDocument *)()
259             { SvMacroItemId::NONE, nullptr }
260         };
261     
262         return aMacroDescriptionsImpl;
263     }
264     
>>>     CID 1421162:  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().
265     SdXShape::SdXShape( SvxShape* pShape, SdXImpressDocument* pModel) throw()
266     :   mpShape( pShape ),
267         mpPropSet( pModel?
268                         lcl_ImplGetShapePropertySet(pModel->IsImpressDocument(), pShape->getShapeKind() == OBJ_GRAF )
269                     :   lcl_GetEmpty_SdXShapePropertySet_Impl() ),
270         mpMap( pModel?

** CID 1421161:  Error handling issues  (UNCAUGHT_EXCEPT)
/connectivity/source/drivers/jdbc/Object.cxx: 117 in connectivity::java_lang_Object::~java_lang_Object()()


________________________________________________________________________________________________________
*** CID 1421161:  Error handling issues  (UNCAUGHT_EXCEPT)
/connectivity/source/drivers/jdbc/Object.cxx: 117 in connectivity::java_lang_Object::~java_lang_Object()()
111     {
112         SDBThreadAttach::addRef();
113         if( pXEnv && myObj )
114             object = pXEnv->NewGlobalRef( myObj );
115     }
116     
>>>     CID 1421161:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "jvmaccess::VirtualMachine::AttachGuard::CreationException" 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().
117     java_lang_Object::~java_lang_Object()
118     {
119         if( object )
120         {
121             SDBThreadAttach t;
122             clearObject(*t.pEnv);

** CID 1421160:    (RESOURCE_LEAK)
/usr/include/c++/7/bits/forward_list.h: 338 in std::_Fwd_list_base<<unnamed>::Parameter, std::allocator<<unnamed>::Parameter>>::_M_get_node()()
/usr/include/c++/7/bits/forward_list.h: 338 in std::_Fwd_list_base<configmgr::dconf::<unnamed>::GVariantHolder, std::allocator<configmgr::dconf::<unnamed>::GVariantHolder>>::_M_get_node()()


________________________________________________________________________________________________________
*** CID 1421160:    (RESOURCE_LEAK)
/usr/include/c++/7/bits/forward_list.h: 338 in std::_Fwd_list_base<<unnamed>::Parameter, std::allocator<<unnamed>::Parameter>>::_M_get_node()()
332         protected:
333     
334           _Node*
335           _M_get_node()
336           {
337     	auto __ptr = _Node_alloc_traits::allocate(_M_get_Node_allocator(), 1);
>>>     CID 1421160:    (RESOURCE_LEAK)
>>>     Variable "__ptr" going out of scope leaks the storage it points to.
338     	return std::__addressof(*__ptr);
339           }
340     
341           template<typename... _Args>
342             _Node*
343             _M_create_node(_Args&&... __args)
/usr/include/c++/7/bits/forward_list.h: 338 in std::_Fwd_list_base<configmgr::dconf::<unnamed>::GVariantHolder, std::allocator<configmgr::dconf::<unnamed>::GVariantHolder>>::_M_get_node()()
332         protected:
333     
334           _Node*
335           _M_get_node()
336           {
337     	auto __ptr = _Node_alloc_traits::allocate(_M_get_Node_allocator(), 1);
>>>     CID 1421160:    (RESOURCE_LEAK)
>>>     Variable "__ptr" going out of scope leaks the storage it points to.
338     	return std::__addressof(*__ptr);
339           }
340     
341           template<typename... _Args>
342             _Node*
343             _M_create_node(_Args&&... __args)

** CID 1421159:  Error handling issues  (UNCAUGHT_EXCEPT)
/xmloff/source/meta/MetaImportComponent.cxx: 65 in XMLMetaImportComponent::XMLMetaImportComponent(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()


________________________________________________________________________________________________________
*** CID 1421159:  Error handling issues  (UNCAUGHT_EXCEPT)
/xmloff/source/meta/MetaImportComponent.cxx: 65 in XMLMetaImportComponent::XMLMetaImportComponent(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
59         css::uno::XComponentContext *context,
60         css::uno::Sequence<css::uno::Any> const &)
61     {
62         return cppu::acquire(new XMLMetaImportComponent(context));
63     }
64     
>>>     CID 1421159:  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().
65     XMLMetaImportComponent::XMLMetaImportComponent(
66         const uno::Reference< uno::XComponentContext >& xContext) throw()
67         :   SvXMLImport(xContext, ""), mxDocProps()
68     {
69     }
70     

** CID 1421158:  Memory - illegal accesses  (UNINIT)
/linguistic/source/spelldsp.cxx: 483 in SpellCheckerDispatcher::spell_Impl(const rtl::OUString &, o3tl::strong_int<unsigned short, LanguageTypeTag>, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()


________________________________________________________________________________________________________
*** CID 1421158:  Memory - illegal accesses  (UNINIT)
/linguistic/source/spelldsp.cxx: 483 in SpellCheckerDispatcher::spell_Impl(const rtl::OUString &, o3tl::strong_int<unsigned short, LanguageTypeTag>, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()
477             sal_Int32 i = 0;
478             Reference< XSpellAlternatives > xTmpRes;
479             bool bTmpResValid = false;
480     
481             // try already instantiated services first
482             {
>>>     CID 1421158:  Memory - illegal accesses  (UNINIT)
>>>     Declaring variable "pRef".
483                 const Reference< XSpellChecker >  *pRef  = pEntry->aSvcRefs.getConstArray();
484                 sal_Int32 nNumSugestions = -1;
485                 while (i <= pEntry->nLastTriedSvcIndex
486                        &&  (!bTmpResValid || xTmpRes.is()) )
487                 {
488                     bTmpResValid = true;

** CID 1421157:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap3.cxx: 974 in Svx3DPolygonObject::Svx3DPolygonObject(SdrObject *)()


________________________________________________________________________________________________________
*** CID 1421157:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap3.cxx: 974 in Svx3DPolygonObject::Svx3DPolygonObject(SdrObject *)()
968         uno::Sequence< OUString > aSeq( SvxShape::getSupportedServiceNames() );
969         comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.drawing.Shape3D",
970                                 "com.sun.star.drawing.Shape3DExtrude"});
971         return aSeq;
972     }
973     
>>>     CID 1421157:  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().
974     Svx3DPolygonObject::Svx3DPolygonObject( SdrObject* pObj ) throw()
975     :   SvxShape( pObj, getSvxMapProvider().GetMap(SVXMAP_3DPOLYGONOBJECT), getSvxMapProvider().GetPropertySet(SVXMAP_3DPOLYGONOBJECT, SdrObject::GetGlobalDrawObjectItemPool()) )
976     {
977     }
978     
979     Svx3DPolygonObject::~Svx3DPolygonObject() throw()

** CID 1421156:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshape.cxx: 4041 in SvxShapeRect::SvxShapeRect(SdrObject *)()


________________________________________________________________________________________________________
*** CID 1421156:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshape.cxx: 4041 in SvxShapeRect::SvxShapeRect(SdrObject *)()
4035     
4036     bool SvxShapeText::setPropertyToDefaultImpl( const SfxItemPropertySimpleEntry* pProperty )
4037     {
4038         return SvxShape::setPropertyToDefaultImpl( pProperty );
4039     }
4040     
>>>     CID 1421156:  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().
4041     SvxShapeRect::SvxShapeRect( SdrObject* pObj ) throw()
4042     : SvxShapeText( pObj, getSvxMapProvider().GetMap(SVXMAP_SHAPE), getSvxMapProvider().GetPropertySet(SVXMAP_SHAPE, SdrObject::GetGlobalDrawObjectItemPool()))
4043     {
4044     }
4045     
4046     SvxShapeRect::~SvxShapeRect() throw()

** CID 1421155:    (PASS_BY_VALUE)
/usr/include/c++/7/bits/stl_heap.h: 129 in std::__push_heap<__gnu_cxx::__normal_iterator<ww8::Frame *, std::vector<ww8::Frame, std::allocator<ww8::Frame>>>, long, ww8::Frame, __gnu_cxx::__ops::_Iter_comp_val<sortswflys>>(T1, T2, T2, T3, T4 &)()
/usr/include/c++/7/bits/stl_heap.h: 129 in std::__push_heap<__gnu_cxx::__normal_iterator<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry> *, std::vector<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>, std::allocator<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>>>>, long, std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>, __gnu_cxx::__ops::_Iter_comp_val<sd::slidesorter::cache::<unnamed>::AccessTimeComparator>>(T1, T2, T2, T3, T4 &)()


________________________________________________________________________________________________________
*** CID 1421155:    (PASS_BY_VALUE)
/usr/include/c++/7/bits/stl_heap.h: 129 in std::__push_heap<__gnu_cxx::__normal_iterator<ww8::Frame *, std::vector<ww8::Frame, std::allocator<ww8::Frame>>>, long, ww8::Frame, __gnu_cxx::__ops::_Iter_comp_val<sortswflys>>(T1, T2, T2, T3, T4 &)()
123       // + is_heap and is_heap_until in C++0x.
124     
125       template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
126     	   typename _Compare>
127         void
128         __push_heap(_RandomAccessIterator __first,
>>>     CID 1421155:    (PASS_BY_VALUE)
>>>     Passing parameter __value of type "std::remove_reference<ww8::Frame &>::type" (size 152 bytes) by value.
129     		_Distance __holeIndex, _Distance __topIndex, _Tp __value,
130     		_Compare& __comp)
131         {
132           _Distance __parent = (__holeIndex - 1) / 2;
133           while (__holeIndex > __topIndex && __comp(__first + __parent, __value))
134     	{
/usr/include/c++/7/bits/stl_heap.h: 129 in std::__push_heap<__gnu_cxx::__normal_iterator<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry> *, std::vector<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>, std::allocator<std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>>>>, long, std::pair<const SdrPage *, sd::slidesorter::cache::BitmapCache::CacheEntry>, __gnu_cxx::__ops::_Iter_comp_val<sd::slidesorter::cache::<unnamed>::AccessTimeComparator>>(T1, T2, T2, T3, T4 &)()
123       // + is_heap and is_heap_until in C++0x.
124     
125       template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
126     	   typename _Compare>
127         void
128         __push_heap(_RandomAccessIterator __first,
>>>     CID 1421155:    (PASS_BY_VALUE)
>>>     Passing parameter __value of type "std::remove_reference<std::pair<SdrPage const *, sd::slidesorter::cache::BitmapCache::CacheEntry> &>::type" (size 152 bytes) by value.
129     		_Distance __holeIndex, _Distance __topIndex, _Tp __value,
130     		_Compare& __comp)
131         {
132           _Distance __parent = (__holeIndex - 1) / 2;
133           while (__holeIndex > __topIndex && __comp(__first + __parent, __value))
134     	{

** CID 1421154:  Error handling issues  (UNCAUGHT_EXCEPT)
/xmloff/source/meta/MetaImportComponent.cxx: 65 in XMLMetaImportComponent::XMLMetaImportComponent(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()


________________________________________________________________________________________________________
*** CID 1421154:  Error handling issues  (UNCAUGHT_EXCEPT)
/xmloff/source/meta/MetaImportComponent.cxx: 65 in XMLMetaImportComponent::XMLMetaImportComponent(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
59         css::uno::XComponentContext *context,
60         css::uno::Sequence<css::uno::Any> const &)
61     {
62         return cppu::acquire(new XMLMetaImportComponent(context));
63     }
64     
>>>     CID 1421154:  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().
65     XMLMetaImportComponent::XMLMetaImportComponent(
66         const uno::Reference< uno::XComponentContext >& xContext) throw()
67         :   SvXMLImport(xContext, ""), mxDocProps()
68     {
69     }
70     

** CID 1421153:    (UNCAUGHT_EXCEPT)
/include/vcl/scopedbitmapaccess.hxx: 85 in vcl::ScopedBitmapAccess<BitmapReadAccess, AlphaMask, (&AlphaMask::AcquireReadAccess)>::~ScopedBitmapAccess()()
/include/vcl/scopedbitmapaccess.hxx: 85 in vcl::ScopedBitmapAccess<BitmapWriteAccess, AlphaMask, (&AlphaMask::AcquireWriteAccess)>::~ScopedBitmapAccess()()


________________________________________________________________________________________________________
*** CID 1421153:    (UNCAUGHT_EXCEPT)
/include/vcl/scopedbitmapaccess.hxx: 85 in vcl::ScopedBitmapAccess<BitmapReadAccess, AlphaMask, (&AlphaMask::AcquireReadAccess)>::~ScopedBitmapAccess()()
79          }
80     
81         // Disable copy from lvalue.
82         ScopedBitmapAccess(const ScopedBitmapAccess&) = delete;
83         ScopedBitmapAccess &operator=(const ScopedBitmapAccess&) = delete;
84     
>>>     CID 1421153:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_rational> >" 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().
85         ~ScopedBitmapAccess()
86         {
87             if (mpAccess)
88                mpBitmap->ReleaseAccess( mpAccess );
89         }
90     
/include/vcl/scopedbitmapaccess.hxx: 85 in vcl::ScopedBitmapAccess<BitmapWriteAccess, AlphaMask, (&AlphaMask::AcquireWriteAccess)>::~ScopedBitmapAccess()()
79          }
80     
81         // Disable copy from lvalue.
82         ScopedBitmapAccess(const ScopedBitmapAccess&) = delete;
83         ScopedBitmapAccess &operator=(const ScopedBitmapAccess&) = delete;
84     
>>>     CID 1421153:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_rational> >" 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().
85         ~ScopedBitmapAccess()
86         {
87             if (mpAccess)
88                mpBitmap->ReleaseAccess( mpAccess );
89         }
90     

** CID 1421152:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap4.cxx: 705 in SvxFrameShape::SvxFrameShape(SdrObject *)()


________________________________________________________________________________________________________
*** CID 1421152:  Error handling issues  (UNCAUGHT_EXCEPT)
/svx/source/unodraw/unoshap4.cxx: 705 in SvxFrameShape::SvxFrameShape(SdrObject *)()
699         {
700             return SvxOle2Shape::getPropertyValueImpl( rName, pProperty, rValue );
701         }
702     }
703     
704     
>>>     CID 1421152:  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().
705     SvxFrameShape::SvxFrameShape( SdrObject* pObject ) throw()
706     : SvxOle2Shape( pObject, getSvxMapProvider().GetMap(SVXMAP_FRAME), getSvxMapProvider().GetPropertySet(SVXMAP_FRAME, SdrObject::GetGlobalDrawObjectItemPool())  )
707     {
708         SetShapeType( "com.sun.star.drawing.FrameShape" );
709     }
710     

** CID 1421151:  Error handling issues  (UNCAUGHT_EXCEPT)
/emfio/source/reader/mtftools.cxx: 911 in emfio::MtfTools::~MtfTools()()


________________________________________________________________________________________________________
*** CID 1421151:  Error handling issues  (UNCAUGHT_EXCEPT)
/emfio/source/reader/mtftools.cxx: 911 in emfio::MtfTools::~MtfTools()()
905     
906             mnRop = WMFRasterOp::Black;
907             meRasterOp = RasterOp::OverPaint;
908             mpGDIMetaFile->AddAction( new MetaRasterOpAction( RasterOp::OverPaint ) );
909         }
910     
>>>     CID 1421151:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_rational> >" 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().
911         MtfTools::~MtfTools()
912         {
913             mpGDIMetaFile->AddAction( new MetaPopAction() );
914             mpGDIMetaFile->SetPrefMapMode(MapMode(MapUnit::Map100thMM));
915             if ( mrclFrame.IsEmpty() )
916                 mpGDIMetaFile->SetPrefSize( Size( mnDevWidth, mnDevHeight ) );

** CID 1421150:  Incorrect expression  (USELESS_CALL)


________________________________________________________________________________________________________
*** CID 1421150:  Incorrect expression  (USELESS_CALL)
/svx/source/items/svxerr.cxx: 40 in SvxErrorHandler::ensure()()
34         class theSvxErrorHandler
35             : public rtl::Static<SvxErrorHandler, theSvxErrorHandler> {};
36     }
37     
38     void SvxErrorHandler::ensure()
39     {
>>>     CID 1421150:  Incorrect expression  (USELESS_CALL)
>>>     Calling "rtl::Static<SvxErrorHandler, <unnamed>::theSvxErrorHandler>::get()" is only useful for its return value, which is ignored.
40         theSvxErrorHandler::get();
41     }
42     
43     const ErrMsgCode* getRID_SVXERRCODE()
44     {
45         return RID_SVXERRCODE;


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyoW-2FKGiq7Dar3kAQKIjEvhGvQYA6ddXLQmyHafkwAWGgvGmtGtAudmWYwP3FA69qsZ8ss9MbgVGSkRwUOh38dJIn6B-2FhKp451PbJEsnpKUz-2FKqlTx6oHOULdEc-2FaMrTQHDvbIK90-2FqS-2Bh5oxnNMm81S6-2FOKqNvW3M7TzpAVTerng-3D

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5lwWgMDuK-2FivqaohkU3M9kT-2Fww10Qt2GoaCJAOQCa0Wv4ijH4oV8jCt0XXa7QeAwh_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyoW-2FKGiq7Dar3kAQKIjEvhEJaQSQGpTkKu0ZshQTl660M5ilAjbZ-2BNp4yAyuwhXGeEL3yW22g0RWv6nT00WV8agaClTnk5vaUVKhSq7HIM-2B5pF8y2pZX-2BPKJStvz2exqIM9zhfV7r26Uzox-2FkWW2ZxKlH08skEZK24nE7qat1mOo-3D



More information about the LibreOffice mailing list