New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Mon Nov 23 16:16:59 PST 2015
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.
5 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 1340071: Integer handling issues (DIVIDE_BY_ZERO)
________________________________________________________________________________________________________
*** CID 1340071: Integer handling issues (DIVIDE_BY_ZERO)
/sw/source/uibase/docvw/SidebarWin.cxx: 289 in sw::sidebarwindows::SwSidebarWin::PaintTile(OutputDevice &, const Rectangle &)()
283 // No point in showing this button till click on it are not handled.
284 if (pChild == mpMenuButton.get())
285 continue;
286
287 rRenderContext.Push(PushFlags::MAPMODE);
288 const Fraction& rFraction(mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY());
>>> CID 1340071: Integer handling issues (DIVIDE_BY_ZERO)
>>> In function call "operator /", division by expression "rFraction->GetNumerator()" which may be zero has undefined behavior.
289 Point aOffset(PixelToLogic(pChild->GetPosPixel() * rFraction.GetDenominator() / rFraction.GetNumerator()));
290 MapMode aMapMode(rRenderContext.GetMapMode());
291 aMapMode.SetOrigin(aMapMode.GetOrigin() + aOffset);
292 rRenderContext.SetMapMode(aMapMode);
293
294 pChild->Paint(rRenderContext, rRect);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview
To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939
More information about the LibreOffice
mailing list