New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri May 6 15:12:05 UTC 2016


Hi,

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

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


** CID 1359237:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<bool (*)(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &), void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1359237:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<bool (*)(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1359237:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const

** CID 1359236:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/gdi/mapmod.cxx: 62 in MapMode::ImplMapMode::ImplMapMode(const MapMode::ImplMapMode&)()


________________________________________________________________________________________________________
*** CID 1359236:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/gdi/mapmod.cxx: 62 in MapMode::ImplMapMode::ImplMapMode(const MapMode::ImplMapMode&)()
56     MapMode::ImplMapMode::ImplMapMode( const ImplMapMode& rImplMapMode ) :
57         meUnit( rImplMapMode.meUnit ),
58         maOrigin( rImplMapMode.maOrigin ),
59         maScaleX( rImplMapMode.maScaleX ),
60         maScaleY( rImplMapMode.maScaleY )
61     {
>>>     CID 1359236:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mbSimple" is not initialized in this constructor nor in any functions that it calls.
62     }
63     
64     bool MapMode::ImplMapMode::operator==( const ImplMapMode& rImpMapMode ) const
65     {
66         if (meUnit   == rImpMapMode.meUnit
67             && maOrigin == rImpMapMode.maOrigin

** CID 1359235:  Resource leaks  (RESOURCE_LEAK)
/desktop/unx/source/pagein.c: 69 in isRotational()


________________________________________________________________________________________________________
*** CID 1359235:  Resource leaks  (RESOURCE_LEAK)
/desktop/unx/source/pagein.c: 69 in isRotational()
63             {
64                 fclose(fp);
65                 return type == '1';
66             }
67         }
68     #endif
>>>     CID 1359235:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "fp" going out of scope leaks the storage it points to.
69         return 1;
70     }
71     
72     void pagein_execute(char const * path, char const * file)
73     {
74         char fullpath[4096];

** CID 1359234:    (PASS_BY_VALUE)
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, com::sun::star::rendering::Texture, com::sun::star::geometry::IntegerSize2D, com::sun::star::uno::Sequence<signed char>, unsigned int, std::_Placeholder<(int)6>))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::Texture &, const com::sun::star::geometry::IntegerSize2D &, const com::sun::star::uno::Sequence<signed char> &, unsigned int, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>, void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, canvas::ParametricPolyPolygon::Values, com::sun::star::rendering::Texture, std::_Placeholder<(int)6>))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const canvas::ParametricPolyPolygon::Values &, const com::sun::star::rendering::Texture &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>, void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, std::_Placeholder<(int)5>, oglcanvas::CanvasBitmap))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const oglcanvas::CanvasBitmap &)>, void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1359234:    (PASS_BY_VALUE)
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, com::sun::star::rendering::Texture, com::sun::star::geometry::IntegerSize2D, com::sun::star::uno::Sequence<signed char>, unsigned int, std::_Placeholder<(int)6>))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::Texture &, const com::sun::star::geometry::IntegerSize2D &, const com::sun::star::uno::Sequence<signed char> &, unsigned int, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>, void, void>(T1)()
2241     	}
2242         }
2243     
2244       template<typename _Res, typename... _ArgTypes>
2245         template<typename _Functor, typename, typename>
2246           function<_Res(_ArgTypes...)>::
>>>     CID 1359234:    (PASS_BY_VALUE)
>>>     Passing parameter __f of type "std::_Bind_helper<false, bool (*)(oglcanvas::CanvasHelper const &, basegfx::B2DHomMatrix const &, unsigned int, unsigned int, com::sun::star::rendering::Texture const &, com::sun::star::geometry::IntegerSize2D const &, com::sun::star::uno::Sequence<signed char> const &, unsigned int, std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon> > const &), std::_Placeholder<1> const &, std::_Placeholder<2> const &, std::_Placeholder<3> const &, std::_Placeholder<4> const &, com::sun::star::rendering::Texture const &, com::sun::star::geometry::IntegerSize2D const &, com::sun::star::uno::Sequence<signed char> &, unsigned int, std::_Placeholder<6> const &>::type" (size 168 bytes) by value.
2247           function(_Functor __f)
2248           : _Function_base()
2249           {
2250     	typedef _Function_handler<_Signature_type, _Functor> _My_handler;
2251     
2252     	if (_My_handler::_M_not_empty_function(__f))
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, canvas::ParametricPolyPolygon::Values, com::sun::star::rendering::Texture, std::_Placeholder<(int)6>))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const canvas::ParametricPolyPolygon::Values &, const com::sun::star::rendering::Texture &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>, void, void>(T1)()
2241     	}
2242         }
2243     
2244       template<typename _Res, typename... _ArgTypes>
2245         template<typename _Functor, typename, typename>
2246           function<_Res(_ArgTypes...)>::
>>>     CID 1359234:    (PASS_BY_VALUE)
>>>     Passing parameter __f of type "std::_Bind_helper<false, bool (*)(oglcanvas::CanvasHelper const &, basegfx::B2DHomMatrix const &, unsigned int, unsigned int, canvas::ParametricPolyPolygon::Values const &, com::sun::star::rendering::Texture const &, std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon> > const &), std::_Placeholder<1> const &, std::_Placeholder<2> const &, std::_Placeholder<3> const &, std::_Placeholder<4> const &, canvas::ParametricPolyPolygon::Values const &, com::sun::star::rendering::Texture const &, std::_Placeholder<6> const &>::type" (size 184 bytes) by value.
2247           function(_Functor __f)
2248           : _Function_base()
2249           {
2250     	typedef _Function_handler<_Signature_type, _Functor> _My_handler;
2251     
2252     	if (_My_handler::_M_not_empty_function(__f))
/usr/include/c++/5.3.1/functional: 2247 in std::function<bool (const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const std::vector<basegfx::B2DPolyPolygon, std::allocator<basegfx::B2DPolyPolygon>> &)>::function<std::_Bind<bool (*(std::_Placeholder<(int)1>, std::_Placeholder<(int)2>, std::_Placeholder<(int)3>, std::_Placeholder<(int)4>, std::_Placeholder<(int)5>, oglcanvas::CanvasBitmap))(const oglcanvas::CanvasHelper &, const basegfx::B2DHomMatrix &, unsigned int, unsigned int, const com::sun::star::rendering::ARGBColor &, const oglcanvas::CanvasBitmap &)>, void, void>(T1)()
2241     	}
2242         }
2243     
2244       template<typename _Res, typename... _ArgTypes>
2245         template<typename _Functor, typename, typename>
2246           function<_Res(_ArgTypes...)>::
>>>     CID 1359234:    (PASS_BY_VALUE)
>>>     Passing parameter __f of type "std::_Bind_helper<false, bool (*)(oglcanvas::CanvasHelper const &, basegfx::B2DHomMatrix const &, unsigned int, unsigned int, com::sun::star::rendering::ARGBColor const &, oglcanvas::CanvasBitmap const &), std::_Placeholder<1> const &, std::_Placeholder<2> const &, std::_Placeholder<3> const &, std::_Placeholder<4> const &, std::_Placeholder<5> const &, oglcanvas::CanvasBitmap &>::type" (size 168 bytes) by value.
2247           function(_Functor __f)
2248           : _Function_base()
2249           {
2250     	typedef _Function_handler<_Signature_type, _Functor> _My_handler;
2251     
2252     	if (_My_handler::_M_not_empty_function(__f))

** CID 1359233:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 348 in sd::sidebar::SlideBackground::NotifyItemUpdate(unsigned short, SfxItemState, const SfxPoolItem *, bool)()


________________________________________________________________________________________________________
*** CID 1359233:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 348 in sd::sidebar::SlideBackground::NotifyItemUpdate(unsigned short, SfxItemState, const SfxPoolItem *, bool)()
342             break;
343     
344             case SID_ATTR_PAGE_FILLSTYLE:
345             {
346                 if(eState >= SfxItemState::DEFAULT)
347                 {
>>>     CID 1359233:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "aFillStyleItem" = "dynamic_cast <XFillStyleItem const *>(pState)".
348                     const XFillStyleItem* aFillStyleItem = dynamic_cast< const XFillStyleItem* >(pState);
349                     css::drawing::FillStyle eXFS = aFillStyleItem->GetValue();
350                     switch(eXFS)
351                     {
352                         case drawing::FillStyle_NONE:
353                             mpFillStyle->SelectEntryPos(0);

** CID 1359232:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 517 in sd::sidebar::SlideBackground::AssignMasterPage(ListBox &)()


________________________________________________________________________________________________________
*** CID 1359232:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 517 in sd::sidebar::SlideBackground::AssignMasterPage(ListBox &)()
511                 break;
512         }
513     }
514     
515     IMPL_LINK_NOARG_TYPED(SlideBackground, AssignMasterPage, ListBox&, void)
516     {
>>>     CID 1359232:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "pDocSh" = "dynamic_cast <sd::DrawDocShell *>(SfxObjectShell::Current())".
517         ::sd::DrawDocShell* pDocSh = dynamic_cast<::sd::DrawDocShell*>( SfxObjectShell::Current() );
518         SdDrawDocument* mpDoc = pDocSh->GetDoc();
519         sal_uInt16 nSelectedPage = SDRPAGE_NOTFOUND;
520         for( sal_uInt16 nPage = 0; nPage < mpDoc->GetSdPageCount(PK_STANDARD); nPage++ )
521         {
522             if(mpDoc->GetSdPage(nPage,PK_STANDARD)->IsSelected())

** CID 1359231:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 163 in sd::sidebar::SlideBackground::Initialize()()


________________________________________________________________________________________________________
*** CID 1359231:  Null pointer dereferences  (FORWARD_NULL)
/sd/source/ui/sidebar/SlideBackground.cxx: 163 in sd::sidebar::SlideBackground::Initialize()()
157     void SlideBackground::Initialize()
158     {
159         lcl_FillPaperSizeListbox( *mpPaperSizeBox );
160         mpPaperSizeBox->SetSelectHdl(LINK(this,SlideBackground,PaperSizeModifyHdl));
161         mpPaperOrientation->SetSelectHdl(LINK(this,SlideBackground,PaperSizeModifyHdl));
162     
>>>     CID 1359231:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "pDocSh" = "dynamic_cast <sd::DrawDocShell *>(SfxObjectShell::Current())".
163         ::sd::DrawDocShell* pDocSh = dynamic_cast<::sd::DrawDocShell*>( SfxObjectShell::Current() );
164         SdDrawDocument* pDoc = pDocSh->GetDoc();
165         sal_uInt16 nCount = pDoc->GetMasterPageCount();
166         for( sal_uInt16 nLayout = 0; nLayout < nCount; nLayout++ )
167         {
168             SdPage* pMaster = static_cast<SdPage*>(pDoc->GetMasterPage(nLayout));

** CID 1359230:  Control flow issues  (DEADCODE)
/sc/source/core/tool/interpr8.cxx: 1977 in ScInterpreter::ScSwitch_MS()()


________________________________________________________________________________________________________
*** CID 1359230:  Control flow issues  (DEADCODE)
/sc/source/core/tool/interpr8.cxx: 1977 in ScInterpreter::ScSwitch_MS()()
1971                  ( !isValue && aRefStr.getDataIgnoreCase() == aStr.getDataIgnoreCase() )) )
1972             {
1973                 // TRUE
1974                 if ( nParamCount < 1 )
1975                 {
1976                     // no parameter given for THEN
>>>     CID 1359230:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "this->nGlobalError = nFirst...".
1977                     nGlobalError = nFirstMatchError;
1978                     PushParameterExpected();
1979                     return;
1980                 }
1981                 bFinished = true;
1982             }

** CID 1359229:  Error handling issues  (CHECKED_RETURN)
/sc/source/core/tool/interpr8.cxx: 1936 in ScInterpreter::ScSwitch_MS()()


________________________________________________________________________________________________________
*** CID 1359229:  Error handling issues  (CHECKED_RETURN)
/sc/source/core/tool/interpr8.cxx: 1936 in ScInterpreter::ScSwitch_MS()()
1930                 aRefStr = GetString();
1931                 break;
1932             case svSingleRef :
1933             case svDoubleRef :
1934                 {
1935                     ScAddress aAdr;
>>>     CID 1359229:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "PopDoubleRefOrSingleRef" without checking return value (as is done elsewhere 24 out of 25 times).
1936                     PopDoubleRefOrSingleRef( aAdr );
1937                     if ( nGlobalError )
1938                         break;
1939                     ScRefCellValue aCell( *pDok, aAdr );
1940                     isValue = !( aCell.hasString() || aCell.hasEmptyValue() || aCell.isEmpty() );
1941                     if ( isValue )

** CID 1358695:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<void (const rtl::OUString &, const Color &)>::function<void (*)(const rtl::OUString &, const Color &), void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1358695:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<void (const rtl::OUString &, const Color &)>::function<void (*)(const rtl::OUString &, const Color &), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1358695:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const

** CID 1353040:    (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<com::sun::star::uno::Reference<com::sun::star::style::XStyle> (SfxStyleSheetBasePool *, SwDocShell *, const rtl::OUString &)>::function<com::sun::star::uno::Reference<com::sun::star::style::XStyle> (*)(SfxStyleSheetBasePool *, SwDocShell *, const rtl::OUString &), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<int (const SwDoc &, rtl::OUString *, int)>::function<int (*)(const SwDoc &, rtl::OUString *, int), void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1353040:    (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<com::sun::star::uno::Reference<com::sun::star::style::XStyle> (SfxStyleSheetBasePool *, SwDocShell *, const rtl::OUString &)>::function<com::sun::star::uno::Reference<com::sun::star::style::XStyle> (*)(SfxStyleSheetBasePool *, SwDocShell *, const rtl::OUString &), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1353040:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<int (const SwDoc &, rtl::OUString *, int)>::function<int (*)(const SwDoc &, rtl::OUString *, int), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1353040:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const

** CID 1351281:    (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool ()>::function<bool (*)(), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<unsigned short (unsigned short)>::function<unsigned short (*)(unsigned short), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SvxFieldData *)>::function<bool (*)(const SvxFieldData *), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxViewShell *)>::function<bool (*)(const SfxViewShell *), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxObjectShell *)>::function<bool (*)(const SfxObjectShell *), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<VclPtr<svx::sidebar::PopupControl> (svx::sidebar::PopupContainer *)>::function<std::function<svx::sidebar::PopupControl *(svx::sidebar::PopupContainer *)>, void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxPoolItem *)>::function<bool (*)(const SfxPoolItem *), void, void>(T1)()
/usr/include/c++/5.3.1/functional: 2258 in std::function<SfxPoolItem *()>::function<SfxPoolItem *(*)(), void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1351281:    (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool ()>::function<bool (*)(), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<unsigned short (unsigned short)>::function<unsigned short (*)(unsigned short), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SvxFieldData *)>::function<bool (*)(const SvxFieldData *), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxViewShell *)>::function<bool (*)(const SfxViewShell *), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxObjectShell *)>::function<bool (*)(const SfxObjectShell *), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<VclPtr<svx::sidebar::PopupControl> (svx::sidebar::PopupContainer *)>::function<std::function<svx::sidebar::PopupControl *(svx::sidebar::PopupContainer *)>, void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<bool (const SfxPoolItem *)>::function<bool (*)(const SfxPoolItem *), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const
/usr/include/c++/5.3.1/functional: 2258 in std::function<SfxPoolItem *()>::function<SfxPoolItem *(*)(), void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1351281:    (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const

** CID 1261740:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<void (unsigned long, unsigned long, svl::SharedString)>::function<std::function<void (unsigned long, unsigned long, const svl::SharedString &)>, void, void>(T1)()


________________________________________________________________________________________________________
*** CID 1261740:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/5.3.1/functional: 2258 in std::function<void (unsigned long, unsigned long, svl::SharedString)>::function<std::function<void (unsigned long, unsigned long, const svl::SharedString &)>, void, void>(T1)()
2252     	if (_My_handler::_M_not_empty_function(__f))
2253     	  {
2254     	    _My_handler::_M_init_functor(_M_functor, std::move(__f));
2255     	    _M_invoker = &_My_handler::_M_invoke;
2256     	    _M_manager = &_My_handler::_M_manager;
2257     	  }
>>>     CID 1261740:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "_M_invoker" is not initialized in this constructor nor in any functions that it calls.
2258           }
2259     
2260       template<typename _Res, typename... _ArgTypes>
2261         _Res
2262         function<_Res(_ArgTypes...)>::
2263         operator()(_ArgTypes... __args) const


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?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