forked from old/legacy-imlib2
PNM loader: Fix reading PNM bitmaps.
Attempting to read a PNM bitmap (ASCII format) would cause a lockup due to infinite loop, and in certain cases write access outside allocated memory. Fixes CVE-2016-6348 (out-of-bounds writes ... presumably - CVE text not disclosed yet). Found by Neelima Krishnan, Intel Corporation.
This commit is contained in:
parent
9780f8dbc4
commit
f6d902efd9
|
@ -179,6 +179,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
goto quit_error;
|
||||
ptr2++;
|
||||
i++;
|
||||
x++;
|
||||
}
|
||||
}
|
||||
if (progress &&
|
||||
|
|
Loading…
Reference in New Issue