mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
psd: Fix crash on fuzzed file
oss-fuzz/12752
This commit is contained in:
parent
f61d64e0e5
commit
ac725cca68
@ -177,6 +177,10 @@ static bool LoadPSD(QDataStream &stream, const PSDHeader &header, QImage &img)
|
||||
|
||||
QRgb *image_data = reinterpret_cast<QRgb*>(img.bits());
|
||||
|
||||
if (!image_data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static const channelUpdater updaters[4] = {
|
||||
updateRed,
|
||||
updateGreen,
|
||||
|
Loading…
x
Reference in New Issue
Block a user