Bug 945912 - Fix palette length reporting bug. r=jmuizelaar, a=lsblakk
--- a/media/libpng/pngset.c
+++ b/media/libpng/pngset.c
@@ -527,17 +527,17 @@ png_set_PLTE(png_structrp png_ptr, png_i
if ((num_palette > 0 && palette == NULL) ||
(num_palette == 0
# ifdef PNG_MNG_FEATURES_SUPPORTED
&& (png_ptr->mng_features_permitted & PNG_FLAG_MNG_EMPTY_PLTE) == 0
# endif
))
{
- png_chunk_report(png_ptr, "Invalid palette", PNG_CHUNK_ERROR);
+ png_chunk_error(png_ptr, "Invalid palette");
return;
}
/* It may not actually be necessary to set png_ptr->palette here;
* we do it for backward compatibility with the way the png_handle_tRNS
* function used to do the allocation.
*
* 1.6.0: the above statement appears to be incorrect; something has to set