qt5base-lts/tests/auto
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
..
android Android: Fix missing data from some autotests 2014-03-27 15:17:24 +01:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Increase CI timeout for cmake tests. 2014-03-06 17:22:55 +01:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent: Workaround GCC bug 58800 in median calculation 2013-12-03 11:45:18 +01:00
corelib Mac: make FSEvents-based QFileSystemWatcherEngine more robust. 2014-03-27 17:51:21 +01:00
dbus tests: Mark tst_qdbus* tests as insignificant on OS X 2014-03-13 13:25:49 +01:00
gui Avoid out of bounds memory reads when scaling images 2014-03-28 22:52:19 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Polish tst_qsslsocket a bit. 2014-03-26 07:22:35 +01:00
opengl Resurrect advanced bindTexture() features in QtOpenGL 2014-03-20 14:11:33 +01:00
other Accessibility Mac: Fix handling of top level widget 2014-03-27 14:37:16 +01:00
printsupport QPrinter - Expect failure of QPrinter page size test 2014-03-17 13:46:29 +01:00
shared iOS: Fix compilation of some basic tests 2014-01-17 11:04:43 +01:00
sql Fix positional binding values order in QSqlQuery 2014-03-20 10:36:34 +01:00
testlib Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
tools Remove qSort usages from tests 2014-02-20 08:10:06 +01:00
widgets QNX: Fix QGraphicsItem autotest 2014-03-21 17:55:55 +01:00
xml expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h network test settings: support newer FTP server versions 2013-08-28 12:45:34 +02:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00