New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sat Oct 2 08:14:52 UTC 2021
Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
2 new defect(s) introduced to LibreOffice found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 1492313: Control flow issues (DEADCODE)
/sw/source/core/text/atrstck.cxx: 410 in SwAttrHandler::Push(const SwTextAttr &, const SfxPoolItem &)()
________________________________________________________________________________________________________
*** CID 1492313: Control flow issues (DEADCODE)
/sw/source/core/text/atrstck.cxx: 410 in SwAttrHandler::Push(const SwTextAttr &, const SfxPoolItem &)()
404 {
405 m_aAttrStack[nStack] = &rAttr;
406 return true;
407 }
408
409 if (!pTopAttr)
>>> CID 1492313: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "this->m_aAttrStack[nStack] ...".
410 m_aAttrStack[nStack] = &rAttr;
411 return false;
412 }
413
414 void SwAttrHandler::RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr& rAttr)
415 {
** CID 1485150: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/9/optional: 254 in std::_Optional_payload_base<SwContentNotify>::_M_destroy()()
________________________________________________________________________________________________________
*** CID 1485150: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/9/optional: 254 in std::_Optional_payload_base<SwContentNotify>::_M_destroy()()
248 ::new ((void *) std::__addressof(this->_M_payload))
249 _Stored_type(std::forward<_Args>(__args)...);
250 this->_M_engaged = true;
251 }
252
253 constexpr void
>>> CID 1485150: Error handling issues (UNCAUGHT_EXCEPT)
>>> An exception of type "com::sun::star::uno::RuntimeException" 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().
254 _M_destroy() noexcept
255 {
256 _M_engaged = false;
257 _M_payload._M_value.~_Stored_type();
258 }
259
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DzMsD_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiw2TyZGT7POsJT4IGt7XyaeUXhPvVuR1DvTNXxTRxKzkFcwo7qcu373KDwpTKiGKFMqq-2F95n6fowA8q3R0AfcnsIoo-2Fsb5Bv2T8i6qbztroNRKXGCBsEaMBETNj2A3I2XJupOzr8YgFA6SfL58JA9t-2BqT-2B7I9OobEzfDogFOjWio-3D
More information about the LibreOffice
mailing list