mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
PCXHandler::write: Properly fail if the image is too big
This commit is contained in:
parent
fbeef559b7
commit
a8f92e5525
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user