mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
XCF: Increased maximum property size
CCBUG: 426222 The problem was caused by a check on the maximum size of properties (specifically it failed on PROP_PARASITES).
This commit is contained in:
parent
b8a9c75c80
commit
4f61e3912c
@ -1091,7 +1091,9 @@ bool XCFImageFormat::loadProperty(QDataStream &xcf_io, PropType &type, QByteArra
|
||||
size = 0;
|
||||
} else {
|
||||
xcf_io >> size;
|
||||
if (size > 256000) {
|
||||
if (size > 256000 * 4) {
|
||||
// NOTE: I didn't find any reference to maximum property dimensions in the specs, so I assume it's just a sanity check.
|
||||
qCDebug(XCFPLUGIN) << "XCF: loadProperty skips" << type << "due to size being too large";
|
||||
return false;
|
||||
}
|
||||
data = new char[size];
|
||||
|
Loading…
Reference in New Issue
Block a user