qt5base-lts/tests/auto/gui
Lars Knoll c4d8734c50 Avoid out of bounds memory reads when scaling images
The calculation of the width/height required for the
scaling algorithm was prone to floating point rounding
issues, where the lower value got rounded down, the higher
one rounded up. This could lead to a situation where we
iterated over one more line/pixel in the line than we have
in the source image.

Correct this by passing the dimension of the source image into
the function and bounds checking the values before iterating.

Task-number: QTBUG-35927
Change-Id: If44b2235a479224660d508a0504fec40d724763a
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
2014-03-28 22:52:19 +01:00
..
image Avoid out of bounds memory reads when scaling images 2014-03-28 22:52:19 +01:00
itemmodels tests: Remove superfluous gui additions to QT 2014-02-28 17:59:29 +01:00
kernel QNX: Fix QWindow autotest 2014-03-27 14:41:28 +01:00
math3d Add operator[] to QVectorND classes 2013-08-27 17:50:40 +02:00
painting QPdfWriter - Use QPageSize and QPageLayout 2014-03-17 13:45:52 +01:00
qopengl Fix the QOpenGL autotest's offscreen surface handling 2014-03-27 14:29:39 +01:00
text Deprecate QFont::setRawName() and QFont::rawName() 2014-03-27 22:02:39 +01:00
util Bugfix QDesktopServices on Windows 2013-07-11 10:56:49 +02:00
gui.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00