[Webkit-unassigned] [Bug 61603] FEConcolveMatrix::getPixelValue() is range checking x against height, instead of y, when determining if a pixel is in bounds
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 26 21:57:33 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61603
--- Comment #2 from Ryan Sleevi <rsleevi at chromium.org> 2011-05-26 21:57:32 PST ---
This was reported against Chromium by a user running a static analyzer (PVS Studio) against the build. The downstream bug is http://code.google.com/p/chromium/issues/detail?id=84139
The original text of the user report was:
V501 There are identical sub-expressions 'x >= 0' to the left and to the right of the '&&' operator. webcore_platform feconvolvematrix.cpp 289
ALWAYS_INLINE int
FEConvolveMatrix::getPixelValue(PaintingData& paintingData, int x, int y)
{
if (x >= 0 && x < paintingData.width && x >= 0 && y < paintingData.height)
return (y * paintingData.width + x) << 2;
...
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list