mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
PCXHandler::write: Properly fail if the image is too big
This commit is contained in:
@ -618,8 +618,12 @@ bool PCXHandler::write(const QImage &image)
|
||||
|
||||
QImage img = image;
|
||||
|
||||
int w = img.width();
|
||||
int h = img.height();
|
||||
const int w = img.width();
|
||||
const int h = img.height();
|
||||
|
||||
if (w > 65536 || h > 65536) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// qDebug() << "Width: " << w;
|
||||
// qDebug() << "Height: " << h;
|
||||
|
Reference in New Issue
Block a user