[libpng16] Fixed new bug with CRC error after reading an over-length palette.
diff --git a/pngrutil.c b/pngrutil.c
index 6d35445..a006199 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -975,7 +975,7 @@
    if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
 #endif
    {
-      png_crc_finish(png_ptr, 0);
+      png_crc_finish(png_ptr, (int) length - num * 3);
    }
 
 #ifndef PNG_READ_OPT_PLTE_SUPPORTED