mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
psd: Fix crash on fuzzed file
oss-fuzz/12752
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user