mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-02-03 03:10:11 -05:00
PSD: return error if a complete line is read/decompressed
This commit is contained in:
@ -1102,7 +1102,7 @@ bool readChannel(QByteArray &target, QDataStream &stream, quint32 compressedSize
|
||||
if (stream.readRawData(tmp.data(), tmp.size()) != tmp.size()) {
|
||||
return false;
|
||||
}
|
||||
if (packbitsDecompress(tmp.data(), tmp.size(), target.data(), target.size()) < 0) {
|
||||
if (packbitsDecompress(tmp.data(), tmp.size(), target.data(), target.size()) != target.size()) {
|
||||
return false;
|
||||
}
|
||||
} else if (stream.readRawData(target.data(), target.size()) != target.size()) {
|
||||
|
||||
Reference in New Issue
Block a user