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.
6 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 2 of 2 defect(s)
** CID 1680644: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/14/bits/unique_ptr.h: 200 in
std::__uniq_ptr_impl<pcr::OBrowserPage,
std::default_delete<pcr::OBrowserPage>>::reset(pcr::OBrowserPage *)()
_____________________________________________________________________________________________
*** CID 1680644: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/14/bits/unique_ptr.h: 200 in
std::__uniq_ptr_impl<pcr::OBrowserPage,
std::default_delete<pcr::OBrowserPage>>::reset(pcr::OBrowserPage *)()
194 _GLIBCXX23_CONSTEXPR
195 _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); }
196 _GLIBCXX23_CONSTEXPR
197 const _Dp& _M_deleter() const noexcept { return
std::get<1>(_M_t); }
198
199 _GLIBCXX23_CONSTEXPR
>>> CID 1680644: Error handling issues (UNCAUGHT_EXCEPT)
>>> An exception of type "std::runtime_error" is thrown but the exception
>>> specification "noexcept" doesn't allow it to be thrown. This will result in
>>> a call to terminate().
200 void reset(pointer __p) noexcept
201 {
202 const pointer __old_p = _M_ptr();
203 _M_ptr() = __p;
204 if (__old_p)
205 _M_deleter()(__old_p);
** CID 1680643: Control flow issues (DEADCODE)
/svx/source/diagram/IDiagramHelper.cxx: 432 in
svx::diagram::IDiagramHelper::connectToSdrObjGroup(com::sun::star::uno::Reference<com::sun::star::drawing::XShape>
&)()
_____________________________________________________________________________________________
*** CID 1680643: Control flow issues (DEADCODE)
/svx/source/diagram/IDiagramHelper.cxx: 432 in
svx::diagram::IDiagramHelper::connectToSdrObjGroup(com::sun::star::uno::Reference<com::sun::star::drawing::XShape>
&)()
426 }
427 }
428
429 void
IDiagramHelper::connectToSdrObjGroup(com::sun::star::uno::Reference<
com::sun::star::drawing::XShape >& rTarget)
430 {
431 SdrObjGroup* pGroupObject(nullptr);
>>> CID 1680643: Control flow issues (DEADCODE)
>>> Execution cannot reach the expression "this->mxGroupShape.operator
>>> bool()" inside this statement: "if (pGroupObject && this->m...".
432 if (pGroupObject && mxGroupShape && rTarget == mxGroupShape)
433 {
434 pGroupObject =
dynamic_cast<SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(mxGroupShape));
435 if (pGroupObject != nullptr &&
pGroupObject->mp_DiagramHelper.get() == this)
436 {
437 // connection already established
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/libreoffice?tab=overview