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@lists.freedesktop.org", click
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939
Context
- New Defects reported by Coverity Scan for LibreOffice · scan-admin
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.