xref: /aosp_15_r20/external/AFLplusplus/utils/libpng_no_checksum/libpng-nocrc.patch (revision 08b48e0b10e97b33e7b60c5b6e2243bd915777f2)
1--- pngrutil.c.orig	2014-06-12 03:35:16.000000000 +0200
2+++ pngrutil.c	2014-07-01 05:08:31.000000000 +0200
3@@ -268,7 +268,11 @@
4    if (need_crc != 0)
5    {
6       crc = png_get_uint_32(crc_bytes);
7-      return ((int)(crc != png_ptr->crc));
8+
9+      if (crc != png_ptr->crc)
10+        fprintf(stderr, "NOTE: CRC in the file is 0x%08x, change to 0x%08x\n", crc, png_ptr->crc);
11+
12+      return ((int)(1 != 1));
13    }
14
15    else
16