diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 59c86dc4ac..489bba04da 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,10 @@ +Sun May 16 22:53:47 2004 Matthias Clasen + + Merged from 2.4 + + * io-pnm.c (pnm_read_next_value): Don't read integers + partially. (#142584, Kouichirou Hiratsuka) + 2004-05-10 Matthias Clasen Merged from 2.4: diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index 437ccaf0e0..39b7d36337 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -237,7 +237,7 @@ pnm_read_next_value (PnmIOBuffer *inbuf, guint *value, GError **error) *word = '\0'; /* hmmm, there must be more data to this 'word' */ - if (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128)) + if (p == inend || (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128))) return PNM_SUSPEND; /* get the value */