mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-10-10 08:24:20 -04:00
Fix Null-dereference READ
This commit is contained in:
@ -370,7 +370,7 @@ bool IFFHandler::readStandardImage(QImage *image)
|
||||
}
|
||||
if (ipal) {
|
||||
auto pal = img.colorTable();
|
||||
if (pal.isEmpty())
|
||||
if (pal.isEmpty() && cmap)
|
||||
pal = cmap->palette();
|
||||
if (!ipal->initialize(pal, img.height())) {
|
||||
qCWarning(LOG_IFFPLUGIN) << "IFFHandler::readStandardImage(): unable to initialize palette changer";
|
||||
|
Reference in New Issue
Block a user