New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Jun 29 06:53:37 UTC 2022


Hi,

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

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


** CID 1506713:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/ppt/timenodelistcontext.cxx: 652 in oox::ppt::<unnamed>::AnimScaleContext::AnimScaleContext(const oox::core::FragmentHandler2 &, int, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, const std::shared_ptr<oox::ppt::TimeNode> &)()


________________________________________________________________________________________________________
*** CID 1506713:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/ppt/timenodelistcontext.cxx: 652 in oox::ppt::<unnamed>::AnimScaleContext::AnimScaleContext(const oox::core::FragmentHandler2 &, int, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, const std::shared_ptr<oox::ppt::TimeNode> &)()
646     
647         /** CT_TLAnimateScaleBehavior */
648         class AnimScaleContext
649             : public TimeNodeContext
650         {
651         public:
>>>     CID 1506713:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_optional_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().
652             AnimScaleContext( FragmentHandler2 const & rParent, sal_Int32  aElement,
653                                 const Reference< XFastAttributeList >& xAttribs,
654                                 const TimeNodePtr & pNode ) noexcept
655                 : TimeNodeContext( rParent, aElement, pNode )
656                     , mbZoomContents( false )
657                 {

** CID 1506712:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/drawingml/transform2dcontext.cxx: 33 in oox::drawingml::Transform2DContext::Transform2DContext(const oox::core::ContextHandler2Helper &, const oox::AttributeList &, oox::drawingml::Shape &, bool)()


________________________________________________________________________________________________________
*** CID 1506712:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/drawingml/transform2dcontext.cxx: 33 in oox::drawingml::Transform2DContext::Transform2DContext(const oox::core::ContextHandler2Helper &, const oox::AttributeList &, oox::drawingml::Shape &, bool)()
27     using namespace ::com::sun::star;
28     using ::oox::core::ContextHandlerRef;
29     
30     namespace oox::drawingml {
31     
32     /** context to import a CT_Transform2D */
>>>     CID 1506712:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_optional_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().
33     Transform2DContext::Transform2DContext( ContextHandler2Helper const & rParent, const AttributeList& rAttribs, Shape& rShape, bool btxXfrm ) noexcept
34     : ContextHandler2( rParent )
35     , mrShape( rShape )
36     , mbtxXfrm ( btxXfrm )
37     {
38         if( !btxXfrm )

** CID 1506711:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/ppt/slidetransitioncontext.cxx: 36 in oox::ppt::SlideTransitionContext::SlideTransitionContext(const oox::core::FragmentHandler2 &, const oox::AttributeList &, oox::PropertyMap &)()


________________________________________________________________________________________________________
*** CID 1506711:  Error handling issues  (UNCAUGHT_EXCEPT)
/oox/source/ppt/slidetransitioncontext.cxx: 36 in oox::ppt::SlideTransitionContext::SlideTransitionContext(const oox::core::FragmentHandler2 &, const oox::AttributeList &, oox::PropertyMap &)()
30     using namespace ::oox::drawingml;
31     using namespace ::com::sun::star::uno;
32     using namespace ::com::sun::star::xml::sax;
33     
34     namespace oox::ppt {
35     
>>>     CID 1506711:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "std::bad_optional_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().
36     SlideTransitionContext::SlideTransitionContext( FragmentHandler2 const & rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) noexcept
37     : FragmentHandler2( rParent )
38     , maSlideProperties( aProperties )
39     , mbHasTransition( false )
40     , mbHasTransitionDuration( false )
41     {

** CID 1506710:  Error handling issues  (CHECKED_RETURN)
/sw/source/uibase/utlui/content.cxx: 3904 in SwContentTree::UpdateTracking()::[lambda(weld::TreeIter &) (instance 1)]::operator ()(weld::TreeIter &) const()


________________________________________________________________________________________________________
*** CID 1506710:  Error handling issues  (CHECKED_RETURN)
/sw/source/uibase/utlui/content.cxx: 3904 in SwContentTree::UpdateTracking()::[lambda(weld::TreeIter &) (instance 1)]::operator ()(weld::TreeIter &) const()
3898                             // tdf#149279 show at least two outline entries before the set cursor entry
3899                             std::unique_ptr<weld::TreeIter> xIter(m_xTreeView->make_iterator(&rEntry));
3900                             for (int i = 0; i < 2; i++)
3901                             {
3902                                 if (m_xTreeView->get_iter_depth(*xIter) == 0)
3903                                     break;
>>>     CID 1506710:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "iter_previous" without checking return value (as is done elsewhere 6 out of 7 times).
3904                                 m_xTreeView->iter_previous(*xIter);
3905                                 while (!weld::IsEntryVisible(*m_xTreeView, *xIter))
3906                                     m_xTreeView->iter_parent(*xIter);
3907                             }
3908                             m_xTreeView->scroll_to_row(*xIter);
3909                         }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D80Bw_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi4XszESgjJJnOsep8QdxAtTGlStlAzeQffNw2dqI45VxxJZFWD1e0-2BLjXlBFUJ-2B1zyOVL-2B6sGODBeblNFMfEuboqnTjrj-2BgKFyuZGD8C3RX-2F3q1cVYqr7Ve8Mp-2B22mQffbvwaAz8nDBOOFo68yvTRCRuRi7xaYQiZUPwpVpGdo-2Bw-3D



More information about the LibreOffice mailing list