summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_mac_p.h
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-11-17 14:37:25 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-11-17 14:37:25 (GMT)
commitcfa2c8edab18e810749ad7df29c0b3b4f83f7140 (patch)
tree02ef65dc18b653a0736908fe03f78288da5ad7b8 /src/gui/image/qpixmap_mac_p.h
parent4297b85a83408f86f2bd4df0f3b7bc98bf900fbe (diff)
downloadQt-cfa2c8edab18e810749ad7df29c0b3b4f83f7140.zip
Qt-cfa2c8edab18e810749ad7df29c0b3b4f83f7140.tar.gz
Qt-cfa2c8edab18e810749ad7df29c0b3b4f83f7140.tar.bz2
Fixed a crash on Mac in QPixmap when loading pixmaps of different sizes.
The size of the original pixmap data block wasn't retained, which would result in out-of-bound reads in the memcpy() call. Task-number: QTBUG-5070 Reviewed-by: Kim
Diffstat (limited to 'src/gui/image/qpixmap_mac_p.h')
-rw-r--r--src/gui/image/qpixmap_mac_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_mac_p.h b/src/gui/image/qpixmap_mac_p.h
index a3fb95f..45ab8e2 100644
--- a/src/gui/image/qpixmap_mac_p.h
+++ b/src/gui/image/qpixmap_mac_p.h
@@ -107,6 +107,7 @@ private:
pixelsToFree later on instead of malloc'ing memory.
*/
quint32 *pixels;
+ uint pixelsSize;
quint32 *pixelsToFree;
uint bytesPerRow;
QRectF cg_mask_rect;