New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Fri Apr 23 13:51:23 UTC 2021
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.
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 2 of 2 defect(s)
** CID 1477317: Control flow issues (DEADCODE)
/sc/source/core/data/document.cxx: 2388 in ScDocument::TransposeClip(ScDocument*, InsertDeleteFlags, bool, bool)()
________________________________________________________________________________________________________
*** CID 1477317: Control flow issues (DEADCODE)
/sc/source/core/data/document.cxx: 2388 in ScDocument::TransposeClip(ScDocument*, InsertDeleteFlags, bool, bool)()
2382 nRowOffset = nRowCount;
2383
2384 // calculate filtered rows of current clip range
2385 SCROW nRowCountAll = aClipRange.aEnd.Row() - aClipRange.aStart.Row() + 1;
2386 SCROW nRowCountNonFiltered = CountNonFilteredRows(
2387 aClipRange.aStart.Row(), aClipRange.aEnd.Row(), aClipRange.aStart.Tab());
>>> CID 1477317: Control flow issues (DEADCODE)
>>> Execution cannot reach the expression "nRowCountAll" inside this statement: "nRowCountInRange = (bInclud...".
2388 SCROW nRowCountInRange = bIncludeFiltered ? nRowCountAll : nRowCountNonFiltered;
2389 nRowCount += nRowCountInRange; // for next iteration
2390 }
2391
2392 for (SCTAB i = 0; i < static_cast<SCTAB>(maTabs.size()); i++)
2393 {
** CID 1477316: Uninitialized members (UNINIT_CTOR)
/starmath/source/view.cxx: 286 in SmGraphicWidget::SmGraphicWidget(SmViewShell &, SmGraphicWindow &)()
________________________________________________________________________________________________________
*** CID 1477316: Uninitialized members (UNINIT_CTOR)
/starmath/source/view.cxx: 286 in SmGraphicWidget::SmGraphicWidget(SmViewShell &, SmGraphicWindow &)()
280 }
281
282 SmGraphicWidget::SmGraphicWidget(SmViewShell& rShell, SmGraphicWindow& rGraphicWindow)
283 : mrGraphicWindow(rGraphicWindow)
284 , mrViewShell(rShell)
285 {
>>> CID 1477316: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "bIsLineVisible" is not initialized in this constructor nor in any functions that it calls.
286 }
287
288 void SmGraphicWidget::SetDrawingArea(weld::DrawingArea* pDrawingArea)
289 {
290 weld::CustomWidgetController::SetDrawingArea(pDrawingArea);
291
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DMJ_O_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJirF5WJ5Rv8fYtA3CBQtSElo00iVD0BsC1YmSEzIXzL7nRUmUe9Q-2FzIGjEmRelyAyTIckH-2BJR7yPaiw6hXW8aSRvHwnQ8KWhf2yOksLq3kOo8liHLF0EdQRM-2FRhCjIGpKk050d1WJXuAESUsWU-2BoRYVytNqzddHexPM9kdLvq3-2FCI-3D
More information about the LibreOffice
mailing list