From e88ee878a90f4bb81c76c2cb2677ef75fd6e5573 Mon Sep 17 00:00:00 2001 From: m5cn9itjr <295305452@qq.com> Date: Wed, 16 Oct 2024 20:28:04 +0800 Subject: [PATCH] ADD file via upload --- libpng-nocrc.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libpng-nocrc.patch diff --git a/libpng-nocrc.patch b/libpng-nocrc.patch new file mode 100644 index 0000000..0ed3202 --- /dev/null +++ b/libpng-nocrc.patch @@ -0,0 +1,15 @@ +--- pngrutil.c.orig 2014-06-12 03:35:16.000000000 +0200 ++++ pngrutil.c 2014-07-01 05:08:31.000000000 +0200 +@@ -268,7 +268,11 @@ + if (need_crc != 0) + { + crc = png_get_uint_32(crc_bytes); +- return ((int)(crc != png_ptr->crc)); ++ ++ if (crc != png_ptr->crc) ++ fprintf(stderr, "NOTE: CRC in the file is 0x%08x, change to 0x%08x\n", crc, png_ptr->crc); ++ ++ return ((int)(1 != 1)); + } + + else