[master] Imported from libpng-1.5.10rc01.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-03-19 06:19:40 -05:00
parent ae1b45a046
commit 5a13159bfc
32 changed files with 147 additions and 104 deletions

View File

@@ -805,7 +805,7 @@ png_read_end(png_structp png_ptr, png_infop info_ptr)
/* Report invalid palette index; added at libng-1.5.10 */
if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
png_ptr->num_palette_max > png_ptr->num_palette)
png_warning(png_ptr, "Read palette index exceeding num_palette");
png_benign_error(png_ptr, "Read palette index exceeding num_palette");
#endif
do