New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Thu Aug 11 19:15:47 UTC 2022
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.
16 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 1507888: Uninitialized members (UNINIT_CTOR)
/vcl/source/filter/GraphicFormatDetector.cxx: 352 in vcl::GraphicFormatDetector::GraphicFormatDetector(SvStream &, rtl::OUString, bool)()
________________________________________________________________________________________________________
*** CID 1507888: Uninitialized members (UNINIT_CTOR)
/vcl/source/filter/GraphicFormatDetector.cxx: 352 in vcl::GraphicFormatDetector::GraphicFormatDetector(SvStream &, rtl::OUString, bool)()
346 , mnSecondLong(0)
347 , mnStreamPosition(0)
348 , mnStreamLength(0)
349 , mbExtendedInfo(bExtendedInfo)
350 , maMetadata()
351 {
>>> CID 1507888: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "mbWasCompressed" is not initialized in this constructor nor in any functions that it calls.
352 }
353
354 bool GraphicFormatDetector::detect()
355 {
356 maFirstBytes.clear();
357 maFirstBytes.resize(256, 0);
** CID 1507887: Code maintainability issues (UNUSED_VALUE)
/sc/source/ui/view/tabview.cxx: 519 in ScTabView::DoResize(const Point &, const Size &, bool)()
________________________________________________________________________________________________________
*** CID 1507887: Code maintainability issues (UNUSED_VALUE)
/sc/source/ui/view/tabview.cxx: 519 in ScTabView::DoResize(const Point &, const Size &, bool)()
513 pVSplitter->SetDragRectPixel(
514 tools::Rectangle( nPosX, nPosY, nPosX+nSizeX, nPosY+nSizeY ), pFrameWin );
515
516 if (bTabControl && ! bHScroll )
517 {
518 nBarY = aHScrollLeft->GetSizePixel().Height();
>>> CID 1507887: Code maintainability issues (UNUSED_VALUE)
>>> Assigning value from "this->aVScrollBottom->GetSizePixel().Width()" to "nBarX" here, but that stored value is overwritten before it can be used.
519 nBarX = aVScrollBottom->GetSizePixel().Width();
520
521 tools::Long nSize1 = nSizeX;
522
523 tools::Long nTabSize = nSize1;
524 if (nTabSize < 0) nTabSize = 0;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DwsR7_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiALwYzAItGe-2FwqSPRYT3IydrHie0m-2FP0GuaIqKUUrUxmwSgDDtPeAhdkYH7SZg7K811NIWv2LQpYhDOd4d-2F126bsXHR04G6aGbi1-2BemUGUpUPiGYcxesXokItMoFcD7ugWqLD8pKskh3LeazUryY2rhs4d-2BEcT3ArTl0OtTeDpeU-3D
More information about the LibreOffice
mailing list