From 5d7ef7c38e9f6aa473fec5ee7f1daabcb405ffd7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer Date: Sun, 10 Jan 2016 13:24:35 +0100 Subject: [PATCH] fix loading of RLE compressed PSD files decodeRLEData() expects a quint16 as length, but the PSD loader calls it with a quint32. We do need quint32 for PSD, otherwise it would overflow for images bigger than 256x256 pixels (it's the pixel count there, i.e. width x height). BUG: 354413 FIXED-IN: 5.19.0 REVIEW: 126684 --- src/imageformats/rle_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/rle_p.h b/src/imageformats/rle_p.h index 71d6b2c..202636e 100644 --- a/src/imageformats/rle_p.h +++ b/src/imageformats/rle_p.h @@ -75,7 +75,7 @@ template static inline bool decodeRLEData(RLEVariant variant, QDataStream &stream, Item *dest, - quint16 length, + quint32 length, Func1 readData, Func2 updateItem) {