Skip to content

Commit

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

Change-Id: I5bb6f60e1c61849e0d8c735edc3869945e5331c1
(cherry picked from qtbase/ea2c5417fcd374302f5019e67f72af5facbd29f6)
Reviewed-by: Richard J. Moore <[email protected]>
  • Loading branch information
Eirik Aavitsland committed Mar 13, 2015
1 parent fb7fa29 commit a1cf194
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/image/qgifhandler.cpp
Original file line number Diff line number Diff line change
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 a1cf194

Please sign in to comment.