Fix out-of-bound access. (#440918, Matthias Kilian)
2007-06-12 Behdad Esfahbod <behdad@gnome.org> * io-pnm.c (explode_bitmap_into_buf): Fix out-of-bound access. (#440918, Matthias Kilian) svn path=/trunk/; revision=18110
This commit is contained in:
parent
1adaeba11f
commit
d6061b54e2
@ -1,3 +1,8 @@
|
|||||||
|
2007-06-12 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
|
* io-pnm.c (explode_bitmap_into_buf): Fix out-of-bound access.
|
||||||
|
(#440918, Matthias Kilian)
|
||||||
|
|
||||||
2007-06-06 Matthias Clasen <mclasen@redhat.com>
|
2007-06-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.11.2 ===
|
* === Released 2.11.2 ===
|
||||||
|
@ -133,7 +133,7 @@ explode_bitmap_into_buf (PnmLoaderContext *context)
|
|||||||
to -= 3;
|
to -= 3;
|
||||||
bit++;
|
bit++;
|
||||||
|
|
||||||
if (bit > 7) {
|
if (bit > 7 && x > 0) {
|
||||||
from--;
|
from--;
|
||||||
data = from[0];
|
data = from[0];
|
||||||
bit = 0;
|
bit = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user