Commit d14f203b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Merged from 2.4

Sun May 16 22:53:47 2004  Matthias Clasen  <maclas@gmx.de>

        Merged from 2.4

	* io-pnm.c (pnm_read_next_value): Don't read integers
	partially.  (#142584, Kouichirou Hiratsuka)
parent d9d8bda5
Sun May 16 22:53:47 2004 Matthias Clasen <maclas@gmx.de>
Merged from 2.4
* io-pnm.c (pnm_read_next_value): Don't read integers
partially. (#142584, Kouichirou Hiratsuka)
2004-05-10 Matthias Clasen <mclasen@redhat.com>
Merged from 2.4:
......
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment