New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Thu Dec 12 02:30:07 UTC 2024


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


** CID 1636683:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 68 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, writerfilter::ooxml::CallDataType)()


________________________________________________________________________________________________________
*** CID 1636683:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 68 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, writerfilter::ooxml::CallDataType)()
62             : m_nLevel(nLevel)
63             , m_eType(eType)
64             , m_aAttributes(new sax_fastparser::FastAttributeList(rAttributes))
65             , m_sNameSpace(rNameSpace)
66             , m_sElement(rElement)
67         {
>>>     CID 1636683:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_nElement" is not initialized in this constructor nor in any functions that it calls.
68         }
69     
70         //end unknown element
71         CallData(sal_uInt32 nLevel, const ::rtl::OUString& rNameSpace, const ::rtl::OUString& rElement)
72             : m_nLevel(nLevel)
73             , m_eType(CallDataType::EndUnknown)

** CID 1636682:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 88 in writerfilter::ooxml::ShadowContext::createUnknownChildContext(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &)()


________________________________________________________________________________________________________
*** CID 1636682:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 88 in writerfilter::ooxml::ShadowContext::createUnknownChildContext(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &)()
82     ShadowContext::createUnknownChildContext(
83         const ::rtl::OUString& rNamespace, const ::rtl::OUString& rElement,
84         const ::css::uno::Reference<::css::xml::sax::XFastAttributeList>& rAttribs)
85     {
86         CallData callData(m_nElementLevel, rNamespace, rElement, rAttribs,
87                           CallDataType::UnknownContext);
>>>     CID 1636682:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "callData". Field "callData.m_nElement" is uninitialized when calling "push_back". [Note: The source code implementation of the function has been overridden by a builtin model.]
88         m_aCallDataDeque.push_back(callData);
89         return this;
90     }
91     void ShadowContext::characters(const ::rtl::OUString& aChars)
92     {
93         CallData callData(m_nElementLevel, aChars);
94         m_aCallDataDeque.push_back(callData);
95     }

** CID 1636681:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 94 in writerfilter::ooxml::ShadowContext::characters(const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1636681:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 94 in writerfilter::ooxml::ShadowContext::characters(const rtl::OUString &)()
88         m_aCallDataDeque.push_back(callData);
89         return this;
90     }
91     void ShadowContext::characters(const ::rtl::OUString& aChars)
92     {
93         CallData callData(m_nElementLevel, aChars);
>>>     CID 1636681:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "callData". Field "callData.m_nElement" is uninitialized when calling "push_back". [Note: The source code implementation of the function has been overridden by a builtin model.]
94         m_aCallDataDeque.push_back(callData);
95     }

** CID 1636680:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 71 in writerfilter::ooxml::ShadowContext::endUnknownElement(const rtl::OUString &, const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1636680:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 71 in writerfilter::ooxml::ShadowContext::endUnknownElement(const rtl::OUString &, const rtl::OUString &)()
65     }
66     void ShadowContext::endUnknownElement(const ::rtl::OUString& rNamespace,
67                                           const ::rtl::OUString& rElement)
68     {
69         --m_nElementLevel;
70         CallData callData(m_nElementLevel, rNamespace, rElement);
>>>     CID 1636680:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "callData". Field "callData.m_nElement" is uninitialized when calling "push_back". [Note: The source code implementation of the function has been overridden by a builtin model.]
71         m_aCallDataDeque.push_back(callData);
72     }
73     ::css::uno::Reference<::css::xml::sax::XFastContextHandler> ShadowContext::createFastChildContext(
74         ::sal_Int32 nElement,
75         const ::css::uno::Reference<::css::xml::sax::XFastAttributeList>& rAttribs)
76     {

** CID 1636679:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 58 in writerfilter::ooxml::ShadowContext::startUnknownElement(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &)()


________________________________________________________________________________________________________
*** CID 1636679:  Uninitialized variables  (UNINIT)
/sw/source/writerfilter/ooxml/ShadowContext.cxx: 58 in writerfilter::ooxml::ShadowContext::startUnknownElement(const rtl::OUString &, const rtl::OUString &, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &)()
52     void ShadowContext::startUnknownElement(
53         const ::rtl::OUString& rNamespace, const ::rtl::OUString& rElement,
54         const ::css::uno::Reference<::css::xml::sax::XFastAttributeList>& rAttribs)
55     {
56         ++m_nElementLevel;
57         CallData callData(m_nElementLevel, rNamespace, rElement, rAttribs, CallDataType::Unknown);
>>>     CID 1636679:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "callData". Field "callData.m_nElement" is uninitialized when calling "push_back". [Note: The source code implementation of the function has been overridden by a builtin model.]
58         m_aCallDataDeque.push_back(callData);
59     }
60     void ShadowContext::endFastElement(::sal_Int32 nElement)
61     {
62         --m_nElementLevel;
63         CallData callData(m_nElementLevel, nElement);

** CID 1636678:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 77 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &, const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1636678:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 77 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &, const rtl::OUString &)()
71         CallData(sal_uInt32 nLevel, const ::rtl::OUString& rNameSpace, const ::rtl::OUString& rElement)
72             : m_nLevel(nLevel)
73             , m_eType(CallDataType::EndUnknown)
74             , m_sNameSpace(rNameSpace)
75             , m_sElement(rElement)
76         {
>>>     CID 1636678:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_nElement" is not initialized in this constructor nor in any functions that it calls.
77         }
78     
79         // start fast element
80         CallData(sal_uInt32 nLevel, sal_Int32 nElement,
81                  const css::uno::Reference<css::xml::sax::XFastAttributeList>& rAttributes,
82                  CallDataType eType)

** CID 1636677:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 104 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1636677:  Uninitialized members  (UNINIT_CTOR)
/sw/source/writerfilter/ooxml/ShadowContext.hxx: 104 in writerfilter::ooxml::CallData::CallData(unsigned int, const rtl::OUString &)()
98         //chars
99         CallData(sal_uInt32 nLevel, const ::rtl::OUString& rChars)
100             : m_nLevel(nLevel)
101             , m_eType(CallDataType::Char)
102             , m_aChars(rChars)
103         {
>>>     CID 1636677:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_nElement" is not initialized in this constructor nor in any functions that it calls.
104         }
105     
106         CallData(CallData const&) = default;
107     
108         sal_uInt32 getLevel() const { return m_nLevel; }
109         CallDataType getType() const { return m_eType; }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3DI4Ek_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGt5fBggJZtKqlBCwZT2C2T91-2FxBJYheK4gu7hdGzfiBjWClDHtUcp10QcpxRMYVaBYYRSXMTD6Aw3O1tjnO1qBDs1XQ0-2Fij-2BtBpNu6h66zsaaw6PbX6FOkXoYfWLMfhgWBSTSf4flYzNunintQDCOr8BlToeDuVZ7GRpjxkO2skvY-3D



More information about the LibreOffice mailing list