Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found
with Coverity Scan.
1 new defect(s) introduced to LibreOffice found with Coverity Scan.
4 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 1 of 1 defect(s)
** CID 1681468: Integer handling issues (NEGATIVE_RETURNS)
_____________________________________________________________________________________________
*** CID 1681468: Integer handling issues (NEGATIVE_RETURNS)
/sw/source/ui/table/convert.cxx: 248 in
SwConvertTableDlg::CheckHdl(weld::Toggleable &)()
242
243 IMPL_LINK(SwConvertTableDlg, CheckHdl, weld::Toggleable&, rBtn, void)
244 {
245 if (m_nIndex != -1)
246 return;
247
>>> CID 1681468: Integer handling issues (NEGATIVE_RETURNS)
>>> "this->m_nIndex" is passed to a parameter that cannot be negative.
248 SwTableAutoFormat& rData = (*m_xTableTable)[m_nIndex];
249 bool bCheck = rBtn.get_active(), bDataChgd = true;
250
251 if (&rBtn == m_xBtnNumFormat.get())
252 rData.SetValueFormat(bCheck);
253 else if (&rBtn == m_xBtnBorder.get())
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/libreoffice?tab=overview