Commit 5fcc15ab authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Don't read over the end of the buffer if '#' appears at the very end.

2005-02-15  Matthias Clasen  <mclasen@redhat.com>

	* io-pnm.c (pnm_skip_whitespace): Don't read over the end of
	the buffer if '#' appears at the very end.  (#167141, Doug Morgan)
parent 11ea4f51
2005-02-15 Matthias Clasen <mclasen@redhat.com>
* io-pnm.c (pnm_skip_whitespace): Don't read over the end of
the buffer if '#' appears at the very end. (#167141, Doug Morgan)
2005-02-05 Hans Breuer <hans@breuer.org>
* makefile.msc : rule for gdk_pixbuf.def
......
......@@ -192,7 +192,7 @@ pnm_skip_whitespace (PnmIOBuffer *inbuf, GError **error)
for ( ; *inptr != '\n' && inptr < inend; inptr++)
;
if ( *inptr != '\n' ) {
if ( inptr == inend || *inptr != '\n' ) {
/* couldn't read whole comment */
return PNM_SUSPEND;
}
......
Markdown is supported
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