diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2000-06-24 07:42:42 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:05:18 -0500 |
commit | 1394480f4b6567279e5a41b38277407fb9b50abd (patch) | |
tree | 09173a743d400e2b506197ac80a158121b3f2b8a /pngrutil.c | |
parent | 1f2d559f70c0aad278aa28bcf723cfd5e00e0825 (diff) | |
download | libpng-1394480f4b6567279e5a41b38277407fb9b50abd.tar.gz |
Imported from libpng-1.0.7beta18.tarv1.0.7beta18
Diffstat (limited to 'pngrutil.c')
-rw-r--r-- | pngrutil.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pngrutil.c b/pngrutil.c index 56a6f71f4..3d6bd8ae6 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1,7 +1,7 @@ /* pngrutil.c - utilities to read a PNG file * - * libpng 1.0.7rc1 - June 9, 2000 + * libpng 1.0.7beta18 - June 24, 2000 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) @@ -224,8 +224,18 @@ png_decompress_chunk(png_structp png_ptr, int comp_type, } } if (ret != Z_STREAM_END) + { +#if !defined(PNG_NO_STDIO) + char umsg[50]; + + sprintf(umsg,"Incomplete compressed datastream in %s chunk", + png_ptr->chunk_name); + png_warning(png_ptr, umsg); +#else png_warning(png_ptr, - "End of datastream not found in a compressed chunk (other than IDAT)"); + "Incomplete compressed datastream in chunk other than IDAT"); +#endif + } inflateReset(&png_ptr->zstream); png_ptr->zstream.avail_in = 0; @@ -234,7 +244,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type, chunkdata = text; *newlength=text_size; } - else /* if (comp_type >= PNG_TEXT_COMPRESSION_LAST) */ + else /* if (comp_type != PNG_TEXT_COMPRESSION_zTXt) */ { #if !defined(PNG_NO_STDIO) char umsg[50]; |