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
99bb24803a
commit
723f72930b
@ -2048,7 +2048,7 @@ bool XCFImageFormat::loadLevel(QDataStream &xcf_io, Layer &layer, qint32 bpp, co
|
||||
|
||||
switch (layer.compression) {
|
||||
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";
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user