Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes crash in gif image decoder
Fuzzing test revealed that for certain malformed gif files,
qgifhandler would segfault.

Change-Id: I5bb6f60e1c61849e0d8c735edc3869945e5331c1
Reviewed-by: Richard J. Moore <rich@kde.org>
  • Loading branch information
Eirik Aavitsland authored and Pasi Sjöholm committed Apr 13, 2015
1 parent 870e119 commit 2432e40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/image/qgifhandler.cpp
Expand Up @@ -944,6 +944,8 @@ void QGIFFormat::fillRect(QImage *image, int col, int row, int w, int h, QRgb co

void QGIFFormat::nextY(unsigned char *bits, int bpl)
{
if (out_of_bounds)
return;
int my;
switch (interlace) {
case 0: // Non-interlaced
Expand Down

0 comments on commit 2432e40

Please sign in to comment.