mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
xcf: Fix assert in files with two PROP_COLORMAP
It's most probably a broken file but better if we don't assert ^_^ oss-fuzz/12780
This commit is contained in:
@ -451,6 +451,7 @@ bool XCFImageFormat::loadImageProperties(QDataStream &xcf_io, XCFImage &xcf_imag
|
||||
return false;
|
||||
}
|
||||
|
||||
xcf_image.palette = QVector<QRgb>();
|
||||
xcf_image.palette.reserve(xcf_image.num_colors);
|
||||
|
||||
for (int i = 0; i < xcf_image.num_colors; i++) {
|
||||
|
Reference in New Issue
Block a user