New Defects reported by Coverity Scan for LibreOffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

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


** CID 1506515:    (UNINIT_CTOR)
/include/o3tl/enumarray.hxx: 71 in o3tl::enumarray<SwFontScript, const void *>::enumarray()()
/include/o3tl/enumarray.hxx: 71 in o3tl::enumarray<PointerStyle, _GdkCursor *>::enumarray()()


________________________________________________________________________________________________________
*** CID 1506515:    (UNINIT_CTOR)
/include/o3tl/enumarray.hxx: 71 in o3tl::enumarray<SwFontScript, const void *>::enumarray()()
65         template<typename... T> constexpr enumarray(V const & arg, T && ...args):
66             detail_values{arg, std::forward<T>(args)...}
67         {
68             static_assert(sizeof... (T) == max_index);
69         }
70     
>>>     CID 1506515:    (UNINIT_CTOR)
>>>     Non-static class member "detail_values" is not initialized in this constructor nor in any functions that it calls.
71         enumarray() {}
72     
73         const V& operator[](E index) const
74         {
75             assert(index>=static_cast<E>(0) && index<=E::LAST);
76             return detail_values[static_cast<size_type>(index)];
/include/o3tl/enumarray.hxx: 71 in o3tl::enumarray<PointerStyle, _GdkCursor *>::enumarray()()
65         template<typename... T> constexpr enumarray(V const & arg, T && ...args):
66             detail_values{arg, std::forward<T>(args)...}
67         {
68             static_assert(sizeof... (T) == max_index);
69         }
70     
>>>     CID 1506515:    (UNINIT_CTOR)
>>>     Non-static class member "detail_values" is not initialized in this constructor nor in any functions that it calls.
71         enumarray() {}
72     
73         const V& operator[](E index) const
74         {
75             assert(index>=static_cast<E>(0) && index<=E::LAST);
76             return detail_values[static_cast<size_type>(index)];

** CID 1506514:  Uninitialized members  (UNINIT_CTOR)
/starmath/source/ElementsDockingWindow.cxx: 466 in SmElementsControl::SmElementsControl(std::unique_ptr<weld::IconView, std::default_delete<weld::IconView>>)()


________________________________________________________________________________________________________
*** CID 1506514:  Uninitialized members  (UNINIT_CTOR)
/starmath/source/ElementsDockingWindow.cxx: 466 in SmElementsControl::SmElementsControl(std::unique_ptr<weld::IconView, std::default_delete<weld::IconView>>)()
460     {
461         maParser.reset(starmathdatabase::GetVersionSmParser(m_nSmSyntaxVersion));
462         maParser->SetImportSymbolNames(true);
463     
464         mpIconView->connect_query_tooltip(LINK(this, SmElementsControl, QueryTooltipHandler));
465         mpIconView->connect_item_activated(LINK(this, SmElementsControl, ElementActivatedHandler));
>>>     CID 1506514:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnCurrentSetIndex" is not initialized in this constructor nor in any functions that it calls.
466     }
467     
468     SmElementsControl::~SmElementsControl()
469     {
470         mpDocShell->DoClose();
471     }

** CID 1506513:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 531 in ScCellValue::operator =(ScCellValue&&)()


________________________________________________________________________________________________________
*** CID 1506513:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 531 in ScCellValue::operator =(ScCellValue&&)()
525     {
526         ScCellValue aTmp(r);
527         swap(aTmp);
528         return *this;
529     }
530     
>>>     CID 1506513:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_variant_access" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
531     ScCellValue& ScCellValue::operator=(ScCellValue&& rCell) noexcept
532     {
533         clear();
534         maData = std::move(rCell.maData);
535         rCell.maData = true; // reset to empty;
536         return *this;

** CID 1506512:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 280 in ScCellValue::ScCellValue(ScCellValue&&)()


________________________________________________________________________________________________________
*** CID 1506512:  Error handling issues  (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 280 in ScCellValue::ScCellValue(ScCellValue&&)()
274                 maData = r.getDouble();
275             break;
276             default: ;
277         }
278     }
279     
>>>     CID 1506512:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_variant_access" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
280     ScCellValue::ScCellValue(ScCellValue&& r) noexcept
281         : maData(std::move(r.maData))
282     {
283         r.maData = true; // reset to empty;
284     }
285     

** CID 1506511:    (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()


________________________________________________________________________________________________________
*** CID 1506511:    (UNCAUGHT_EXCEPT)
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()
300             default:
301                 assert(false);
302                 return CELLTYPE_NONE;
303         }
304     }
305     
>>>     CID 1506511:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_variant_access" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
306     void ScCellValue::clear() noexcept
307     {
308         switch (getType())
309         {
310             case CELLTYPE_EDIT:
311                 delete getEditText();
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()
300             default:
301                 assert(false);
302                 return CELLTYPE_NONE;
303         }
304     }
305     
>>>     CID 1506511:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_variant_access" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
306     void ScCellValue::clear() noexcept
307     {
308         switch (getType())
309         {
310             case CELLTYPE_EDIT:
311                 delete getEditText();
/sc/source/core/data/cellvalue.cxx: 306 in ScCellValue::clear()()
300             default:
301                 assert(false);
302                 return CELLTYPE_NONE;
303         }
304     }
305     
>>>     CID 1506511:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_variant_access" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
306     void ScCellValue::clear() noexcept
307     {
308         switch (getType())
309         {
310             case CELLTYPE_EDIT:
311                 delete getEditText();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D1Gy-_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJimOIdpOOuz8EJyn4EIt7oyrvATb0ow8lKTlhZlA-2FjumvG9BH3F4qYF5Bz3FFmChoUWEOAJi3-2BcIreZc3uiXz5UnVUkfJNE3IQmOtmnywOZkIwGZWK7d3jr7F4sJ8dFNhyRtrhozCFNIl8BfKotq6eLW1w-2Bmmsq0OY2DjU952qdCE-3D




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux