Bug 945912 - Fix palette length reporting bug. r=jmuizelaar, a=lsblakk
authorGlenn Randers-Pehrson <glennrp+bmo@gmail.com>
Tue, 11 Feb 2014 13:31:57 -0500
changeset 176287 02935dcaa786a541f4018ad9795a70eae51a9519
parent 176286 5f7759dd5abae952126ef043d45ceccab7cc26a6
child 176288 8cb5df1f8bc8cee15cb6bc3f2d76b04d8bf9165e
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, lsblakk
bugs945912
milestone28.0
Bug 945912 - Fix palette length reporting bug. r=jmuizelaar, a=lsblakk
media/libpng/pngset.c
--- 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