summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authoraavit <eirik.aavitsland@digia.com>2012-12-19 14:17:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-20 16:48:36 +0100
commita3a4114f5377597a4641f1c21cac37453afdda9c (patch)
treee3e5c3bc6b909ea01217b51c341ad2cdee688f3c /src/widgets/styles/qcommonstyle.cpp
parentfbdea2c9938601186dbbab96a3ac571f764ba141 (diff)
Fixes: out of bounds memory access in QImage autotest
A pointer to the data of one qimage is used, with an offset, in a copy. In the mono case, that could lead to overflow: the last row would of the copy would stretch 1 byte beyond the end of the allocated area. Fix by reducing the height of the copy, so that it keeps within the allocated memory. Task-number: QTBUG-28322 Change-Id: I09abfc83f738f8af000fc50f8c94f63dba3a6cfe Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/widgets/styles/qcommonstyle.cpp')
0 files changed, 0 insertions, 0 deletions