Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found
with Coverity Scan.
3 new defect(s) introduced to LibreOffice found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)
** CID 1680311: Uninitialized members (UNINIT_CTOR)
/sd/source/core/sdpage.cxx: 140 in SdPage::SdPage(SdDrawDocument &,
bool)()
_____________________________________________________________________________________________
*** CID 1680311: Uninitialized members (UNINIT_CTOR)
/sd/source/core/sdpage.cxx: 140 in SdPage::SdPage(SdDrawDocument &,
bool)()
134 // presentation template of the outline objects. Therefore, it
already
135 // contains the designator for the outline (STR_LAYOUT_OUTLINE).
136 maLayoutName = SdResId(STR_LAYOUT_DEFAULT_NAME)+ SD_LT_SEPARATOR +
STR_LAYOUT_OUTLINE;
137
138 // Stuff that former SetModel did also:
139 ConnectLink();
>>> CID 1680311: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "mbIsCanvasPage" is not initialized in this
>>> constructor nor in any functions that it calls.
140 }
141
142 namespace
143 {
144 void
clearChildNodes(css::uno::Reference<css::animations::XAnimationNode> const &
rAnimationNode)
145 {
** CID 1680310: Integer handling issues (NEGATIVE_RETURNS)
_____________________________________________________________________________________________
*** CID 1680310: Integer handling issues (NEGATIVE_RETURNS)
/sw/source/ui/table/instable.cxx: 162 in
SwInsTableDlg::OKHdl(weld::Button &)()
156 m_aWndPreview.NotifyChange((*m_xTableTable)[styleIdx]);
157 }
158
159 IMPL_LINK_NOARG(SwInsTableDlg, OKHdl, weld::Button&, void)
160 {
161 size_t styleIdx = m_xLbFormat->get_selected_index();
>>> CID 1680310: Integer handling issues (NEGATIVE_RETURNS)
>>> "styleIdx" is passed to a parameter that cannot be negative.
162 m_pShell->SetTableStyle((*m_xTableTable)[styleIdx]);
163
164 if( m_xTAutoFormat )
165 *m_xTAutoFormat = (*m_xTableTable)[styleIdx];
166 else
167 m_xTAutoFormat.reset(new
SwTableAutoFormat((*m_xTableTable)[styleIdx]));
** CID 1680309: Integer handling issues (NEGATIVE_RETURNS)
_____________________________________________________________________________________________
*** CID 1680309: Integer handling issues (NEGATIVE_RETURNS)
/sw/source/ui/table/instable.cxx: 156 in
SwInsTableDlg::SelFormatHdl(weld::TreeView &)()
150 }
151
152 IMPL_LINK_NOARG(SwInsTableDlg, SelFormatHdl, weld::TreeView&, void)
153 {
154 // Get index of selected item from the listbox
155 size_t styleIdx = m_xLbFormat->get_selected_index();
>>> CID 1680309: Integer handling issues (NEGATIVE_RETURNS)
>>> "styleIdx" is passed to a parameter that cannot be negative.
156 m_aWndPreview.NotifyChange((*m_xTableTable)[styleIdx]);
157 }
158
159 IMPL_LINK_NOARG(SwInsTableDlg, OKHdl, weld::Button&, void)
160 {
161 size_t styleIdx = m_xLbFormat->get_selected_index();
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/libreoffice?tab=overview