New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Jun 18 04:25:58 UTC 2022


Hi,

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

7 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 7 of 7 defect(s)


** CID 1506308:    (CHECKED_RETURN)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 347 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 343 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 349 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 348 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 357 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 341 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 362 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 350 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 346 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 354 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()


________________________________________________________________________________________________________
*** CID 1506308:    (CHECKED_RETURN)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 347 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
341         curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
342     
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void *>(&response_body))" without checking return value. This library function may fail and return an error code.
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
352         if (method == HTTP_METHOD::HTTP_POST)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 343 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
337             isPremium = true;
338         }
339     
340         std::string response_body;
341         curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
342     
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L)" without checking return value. This library function may fail and return an error code.
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 349 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, 0)" without checking return value. This library function may fail and return an error code.
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
352         if (method == HTTP_METHOD::HTTP_POST)
353         {
354             curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 348 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
342     
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, 0)" without checking return value. This library function may fail and return an error code.
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
352         if (method == HTTP_METHOD::HTTP_POST)
353         {
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 357 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
351     
352         if (method == HTTP_METHOD::HTTP_POST)
353         {
354             curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
355             if (isPremium == false)
356             {
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aPostData->getStr())" without checking return value. This library function may fail and return an error code.
357                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aPostData.getStr());
358             }
359             else
360             {
361                 premiumPostData = aPostData + "&username=" + username + "&apiKey=" + apiKey;
362                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, premiumPostData.getStr());
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 341 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
335         if (!apiKey.isEmpty() && !username.isEmpty())
336         {
337             isPremium = true;
338         }
339     
340         std::string response_body;
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data())" without checking return value. This library function may fail and return an error code.
341         curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
342     
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 362 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
356             {
357                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aPostData.getStr());
358             }
359             else
360             {
361                 premiumPostData = aPostData + "&username=" + username + "&apiKey=" + apiKey;
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, premiumPostData.getStr())" without checking return value. This library function may fail and return an error code.
362                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, premiumPostData.getStr());
363             }
364         }
365     
366         /*CURLcode cc = */
367         curl_easy_perform(curl.get());
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 350 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, 10L)" without checking return value. This library function may fail and return an error code.
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
352         if (method == HTTP_METHOD::HTTP_POST)
353         {
354             curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
355             if (isPremium == false)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 346 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
340         std::string response_body;
341         curl_easy_setopt(curl.get(), CURLOPT_URL, aURL.data());
342     
343         curl_easy_setopt(curl.get(), CURLOPT_FAILONERROR, 1L);
344         // curl_easy_setopt(curl.get(), CURLOPT_VERBOSE, 1L);
345     
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback)" without checking return value. This library function may fail and return an error code.
346         curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, WriteCallback);
347         curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, static_cast<void*>(&response_body));
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 354 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
348         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, false);
349         curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYHOST, false);
350         curl_easy_setopt(curl.get(), CURLOPT_TIMEOUT, CURL_TIMEOUT);
351     
352         if (method == HTTP_METHOD::HTTP_POST)
353         {
>>>     CID 1506308:    (CHECKED_RETURN)
>>>     Calling "curl_easy_setopt(curl.get(), CURLOPT_POST, 1L)" without checking return value. This library function may fail and return an error code.
354             curl_easy_setopt(curl.get(), CURLOPT_POST, 1L);
355             if (isPremium == false)
356             {
357                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, aPostData.getStr());
358             }
359             else

** CID 1506307:  Performance inefficiencies  (PASS_BY_VALUE)
/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx: 261 in drawinglayer::primitive2d::DiscreteShadowPrimitive2D::DiscreteShadowPrimitive2D(basegfx::B2DHomMatrix, drawinglayer::primitive2d::DiscreteShadow)()


________________________________________________________________________________________________________
*** CID 1506307:  Performance inefficiencies  (PASS_BY_VALUE)
/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx: 261 in drawinglayer::primitive2d::DiscreteShadowPrimitive2D::DiscreteShadowPrimitive2D(basegfx::B2DHomMatrix, drawinglayer::primitive2d::DiscreteShadow)()
255                         getTransform(),
256                         std::move(xRetval)));
257             }
258     
259             DiscreteShadowPrimitive2D::DiscreteShadowPrimitive2D(
260                 basegfx::B2DHomMatrix aTransform,
>>>     CID 1506307:  Performance inefficiencies  (PASS_BY_VALUE)
>>>     Passing parameter aDiscreteShadow of type "drawinglayer::primitive2d::DiscreteShadow" (size 1008 bytes) by value.
261                 DiscreteShadow aDiscreteShadow)
262             :   maTransform(std::move(aTransform)),
263                 maDiscreteShadow(std::move(aDiscreteShadow))
264             {
265             }
266     

** CID 1506306:  Uninitialized members  (UNINIT_CTOR)
/tools/source/zcodec/zcodec.cxx: 54 in ZCodec::ZCodec(unsigned long, unsigned long)()


________________________________________________________________________________________________________
*** CID 1506306:  Uninitialized members  (UNINIT_CTOR)
/tools/source/zcodec/zcodec.cxx: 54 in ZCodec::ZCodec(unsigned long, unsigned long)()
48         , mpOStm(nullptr)
49         , mnOutBufSize(nOutBufSize)
50         , mnCompressLevel(0)
51         , mbGzLib(false)
52     {
53         mpsC_Stream = new z_stream;
>>>     CID 1506306:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnLastModifiedTime" is not initialized in this constructor nor in any functions that it calls.
54     }
55     
56     ZCodec::~ZCodec()
57     {
58         auto pStream = static_cast<z_stream*>(mpsC_Stream);
59         delete pStream;

** CID 1506305:  Performance inefficiencies  (PASS_BY_VALUE)
/chart2/source/view/axes/VAxisBase.cxx: 40 in chart::VAxisBase::VAxisBase(int, int, chart::AxisProperties, com::sun::star::uno::Reference<com::sun::star::util::XNumberFormatsSupplier>)()


________________________________________________________________________________________________________
*** CID 1506305:  Performance inefficiencies  (PASS_BY_VALUE)
/chart2/source/view/axes/VAxisBase.cxx: 40 in chart::VAxisBase::VAxisBase(int, int, chart::AxisProperties, com::sun::star::uno::Reference<com::sun::star::util::XNumberFormatsSupplier>)()
34     {
35     using namespace ::com::sun::star;
36     using namespace ::com::sun::star::chart2;
37     using ::com::sun::star::uno::Reference;
38     
39     VAxisBase::VAxisBase( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
>>>     CID 1506305:  Performance inefficiencies  (PASS_BY_VALUE)
>>>     Passing parameter aAxisProperties of type "chart::AxisProperties" (size 312 bytes) by value.
40                          , AxisProperties aAxisProperties
41                          , uno::Reference< util::XNumberFormatsSupplier > xNumberFormatsSupplier )
42                 : VAxisOrGridBase( nDimensionIndex, nDimensionCount )
43                 , m_xNumberFormatsSupplier(std::move( xNumberFormatsSupplier ))
44                 , m_aAxisProperties(std::move( aAxisProperties ))
45                 , m_bUseTextLabels( false )

** CID 1506304:    (UNCAUGHT_EXCEPT)
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)50, SvtBroadcaster>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)51, sc::CellTextAttr>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)55, ScPostIt>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<ScMatrixImpl, std::default_delete<ScMatrixImpl>>::reset(ScMatrixImpl *)()


________________________________________________________________________________________________________
*** CID 1506304:    (UNCAUGHT_EXCEPT)
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)50, SvtBroadcaster>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
171     
172           pointer&   _M_ptr() { return std::get<0>(_M_t); }
173           pointer    _M_ptr() const { return std::get<0>(_M_t); }
174           _Dp&       _M_deleter() { return std::get<1>(_M_t); }
175           const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
176     
>>>     CID 1506304:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
177           void reset(pointer __p) noexcept
178           {
179     	const pointer __old_p = _M_ptr();
180     	_M_ptr() = __p;
181     	if (__old_p)
182     	  _M_deleter()(__old_p);
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
171     
172           pointer&   _M_ptr() { return std::get<0>(_M_t); }
173           pointer    _M_ptr() const { return std::get<0>(_M_t); }
174           _Dp&       _M_deleter() { return std::get<1>(_M_t); }
175           const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
176     
>>>     CID 1506304:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
177           void reset(pointer __p) noexcept
178           {
179     	const pointer __old_p = _M_ptr();
180     	_M_ptr() = __p;
181     	if (__old_p)
182     	  _M_deleter()(__old_p);
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)51, sc::CellTextAttr>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
171     
172           pointer&   _M_ptr() { return std::get<0>(_M_t); }
173           pointer    _M_ptr() const { return std::get<0>(_M_t); }
174           _Dp&       _M_deleter() { return std::get<1>(_M_t); }
175           const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
176     
>>>     CID 1506304:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
177           void reset(pointer __p) noexcept
178           {
179     	const pointer __old_p = _M_ptr();
180     	_M_ptr() = __p;
181     	if (__old_p)
182     	  _M_deleter()(__old_p);
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<mdds::mtv::base_element_block, mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)55, ScPostIt>>, mdds::mtv::default_trait>::element_block_deleter>::reset(mdds::mtv::base_element_block *)()
171     
172           pointer&   _M_ptr() { return std::get<0>(_M_t); }
173           pointer    _M_ptr() const { return std::get<0>(_M_t); }
174           _Dp&       _M_deleter() { return std::get<1>(_M_t); }
175           const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
176     
>>>     CID 1506304:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
177           void reset(pointer __p) noexcept
178           {
179     	const pointer __old_p = _M_ptr();
180     	_M_ptr() = __p;
181     	if (__old_p)
182     	  _M_deleter()(__old_p);
/usr/include/c++/10/bits/unique_ptr.h: 177 in std::__uniq_ptr_impl<ScMatrixImpl, std::default_delete<ScMatrixImpl>>::reset(ScMatrixImpl *)()
171     
172           pointer&   _M_ptr() { return std::get<0>(_M_t); }
173           pointer    _M_ptr() const { return std::get<0>(_M_t); }
174           _Dp&       _M_deleter() { return std::get<1>(_M_t); }
175           const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
176     
>>>     CID 1506304:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
177           void reset(pointer __p) noexcept
178           {
179     	const pointer __old_p = _M_ptr();
180     	_M_ptr() = __p;
181     	if (__old_p)
182     	  _M_deleter()(__old_p);

** CID 1506303:  Error handling issues  (CHECKED_RETURN)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 367 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()


________________________________________________________________________________________________________
*** CID 1506303:  Error handling issues  (CHECKED_RETURN)
/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx: 367 in LanguageToolGrammarChecker::makeHttpRequest[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, HTTP_METHOD, const rtl::OString &, long &)()
361                 premiumPostData = aPostData + "&username=" + username + "&apiKey=" + apiKey;
362                 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, premiumPostData.getStr());
363             }
364         }
365     
366         /*CURLcode cc = */
>>>     CID 1506303:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "curl_easy_perform" without checking return value (as is done elsewhere 9 out of 10 times).
367         curl_easy_perform(curl.get());
368         curl_easy_getinfo(curl.get(), CURLINFO_RESPONSE_CODE, &nStatusCode);
369         return response_body;
370     }
371     
372     void SAL_CALL LanguageToolGrammarChecker::ignoreRule(const OUString& /*aRuleIdentifier*/,

** CID 1493475:    (UNCAUGHT_EXCEPT)
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)51, sc::CellTextAttr>>, mdds::mtv::default_trait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)56, sc::SparklineCell>>, mdds::mtv::default_trait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)52, svl::SharedString>>, mdds::mtv::default_trait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)55, ScPostIt>>, mdds::mtv::default_trait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)50, rtl::OUString>>, mdds::mtv::default_trait>::~multi_type_vector()()
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)50, SvtBroadcaster>>, mdds::mtv::default_trait>::~multi_type_vector()()


________________________________________________________________________________________________________
*** CID 1493475:    (UNCAUGHT_EXCEPT)
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)51, sc::CellTextAttr>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)56, sc::SparklineCell>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)52, svl::SharedString>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)55, ScPostIt>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::default_element_block<(int)50, rtl::OUString>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>
/usr/include/mdds-2.0/mdds/multi_type_vector/soa/main_def.inl: 390 in mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func1<mdds::mtv::noncopyable_managed_element_block<(int)50, SvtBroadcaster>>, mdds::mtv::default_trait>::~multi_type_vector()()
384             abort();
385         }
386     #endif
387     }
388     
389     template<typename ElemBlockFunc, typename Trait>
>>>     CID 1493475:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "mdds::general_error" 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().
390     multi_type_vector<ElemBlockFunc, Trait>::~multi_type_vector()
391     {
392         delete_element_blocks(0, m_block_store.positions.size());
393     }
394     
395     template<typename ElemBlockFunc, typename Trait>


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D5IRQ_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiWOBQxBKXnFxkB69DitpHNczf6DNRSkmd9GTflTBVEcJGNSkRSmiKHBz5px6hpgaAQ586DGKKwtzFuGk5j4bgfLq24z3GoOJBRWjymLkOlQZUCM8vNtaW4Te6sIy0hsq5D1VQY75EUXggjLvf4fl-2Be1Q8PNLsg6LkkhxpVyiQ8Fs-3D



More information about the LibreOffice mailing list