mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-12 16:18:42 +02:00
Since libpng-1.6.41 support for PNG_IGNORE_ADLER32 is optional, disabled by default owing to its use of an undocumented zlib function, and not presently enabled in Gentoo. Funnily enough there are *two* places in pngcrush code where this option is used and one of them has already used an ifdef guard. Closes: https://bugs.gentoo.org/923023 Signed-off-by: Marek Szuba <marecki@gentoo.org>
13 lines
486 B
Diff
13 lines
486 B
Diff
--- a/pngcrush.c
|
|
+++ b/pngcrush.c
|
|
@@ -5520,8 +5520,10 @@
|
|
* they were already checked in the pngcrush_measure_idat
|
|
* function
|
|
*/
|
|
+# ifdef PNG_IGNORE_ADLER32
|
|
png_set_option(read_ptr, PNG_IGNORE_ADLER32,
|
|
PNG_OPTION_ON);
|
|
+# endif
|
|
png_set_crc_action(read_ptr, PNG_CRC_QUIET_USE,
|
|
PNG_CRC_QUIET_USE);
|
|
}
|