New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sun Apr 2 00:34:47 UTC 2023
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.
1 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 1524675: Uninitialized variables (UNINIT)
________________________________________________________________________________________________________
*** CID 1524675: Uninitialized variables (UNINIT)
/sw/source/core/txtnode/atrflyin.cxx: 243 in SwTextFlyCnt::SetAnchor(const SwTextNode *)()
237 }
238 }
239 }
240
241 // The node may have several SwTextFrames - for every SwTextFrame a
242 // SwFlyInContentFrame is created.
>>> CID 1524675: Uninitialized variables (UNINIT)
>>> Using uninitialized value "aAnchor.m_oContentAnchor._M_payload._M_payload" when calling "~SwFormatAnchor".
243 }
244
245
246 /** GetFlyFrame_() is called during text formatting by SwTextFormatter
247 * and searches for the SwFlyFrame for the dummy char of the current
248 * SwTextFrame. If none is found, a new SwFlyInContentFrame is created.
** CID 1524674: Uninitialized members (UNINIT_CTOR)
/sw/source/core/undo/unattr.cxx: 130 in SwUndoFormatAttr::SwUndoFormatAttr(SfxItemSet &&, SwFormat &, bool)()
________________________________________________________________________________________________________
*** CID 1524674: Uninitialized members (UNINIT_CTOR)
/sw/source/core/undo/unattr.cxx: 130 in SwUndoFormatAttr::SwUndoFormatAttr(SfxItemSet &&, SwFormat &, bool)()
124 , m_nFormatWhich( rChgFormat.Which() )
125 , m_bSaveDrawPt( bSaveDrawPt )
126 {
127 assert(m_sFormatName.getLength());
128
129 Init( rChgFormat );
>>> CID 1524674: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "m_nAnchorContentOffset" is not initialized in this constructor nor in any functions that it calls.
130 }
131
132 SwUndoFormatAttr::SwUndoFormatAttr( const SfxPoolItem& rItem, SwFormat& rChgFormat,
133 bool bSaveDrawPt )
134 : SwUndo( SwUndoId::INSFMTATTR, rChgFormat.GetDoc() )
135 , m_sFormatName(rChgFormat.GetName())
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DQhxG_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiuUmb5lT84-2BniENgUd0kqypD2lntKPnjCm9CaW2qAnWY-2FcIWn5uKzAUjEma7sDUW0XlGUG0kfVIW-2FdfP4wAjwlzDNDi3ugJMWNq7r5a6cgjF0GgXKe6-2FwA5M-2B16xHe-2BciidyZGvH7qTN-2BPBFlzFfv9Vdj-2Fv-2B9wHD0jko-2BI0CApTQ-3D
More information about the LibreOffice
mailing list