From d6061b54e29db4a230d2ddaf827b52ede25e1d23 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 12 Jun 2007 05:40:13 +0000 Subject: [PATCH] Fix out-of-bound access. (#440918, Matthias Kilian) 2007-06-12 Behdad Esfahbod * io-pnm.c (explode_bitmap_into_buf): Fix out-of-bound access. (#440918, Matthias Kilian) svn path=/trunk/; revision=18110 --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-pnm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6bb659fc8c..730a53379d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2007-06-12 Behdad Esfahbod + + * io-pnm.c (explode_bitmap_into_buf): Fix out-of-bound access. + (#440918, Matthias Kilian) + 2007-06-06 Matthias Clasen * === Released 2.11.2 === diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index f9391ca0b4..37f726b30c 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -133,7 +133,7 @@ explode_bitmap_into_buf (PnmLoaderContext *context) to -= 3; bit++; - if (bit > 7) { + if (bit > 7 && x > 0) { from--; data = from[0]; bit = 0;