mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
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
This commit is contained in:
parent
a68bfe27ff
commit
5d7ef7c38e
@ -75,7 +75,7 @@ template<typename Item, typename Func1, typename Func2>
|
||||
static inline bool decodeRLEData(RLEVariant variant,
|
||||
QDataStream &stream,
|
||||
Item *dest,
|
||||
quint16 length,
|
||||
quint32 length,
|
||||
Func1 readData,
|
||||
Func2 updateItem)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user