mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
xcf: fix crash (oss-fuzz issue 62075)
This commit is contained in:
parent
fbf60f8bbb
commit
0a6fbd88e9
@ -2048,7 +2048,7 @@ bool XCFImageFormat::loadLevel(QDataStream &xcf_io, Layer &layer, qint32 bpp, co
|
|||||||
|
|
||||||
switch (layer.compression) {
|
switch (layer.compression) {
|
||||||
case COMPRESS_NONE: {
|
case COMPRESS_NONE: {
|
||||||
if (xcf_io.version() > 11) {
|
if (xcf_io.version() > 11 || size_t(bpp) > sizeof(QRgba64)) {
|
||||||
qCDebug(XCFPLUGIN) << "Component reading not supported yet";
|
qCDebug(XCFPLUGIN) << "Component reading not supported yet";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user