https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32418).
* Fix improper use of NULL in the JNG decoder (CVE-2017-11750, Reference
https://github.com/ImageMagick/ImageMagick/issues/632).
+ * Added "-define png:ignore-crc" option to PNG decoder. When you know
+ your image has no CRC or ADLER32 errors, this can speed up decoding.
+ It is also helpful in debugging bug reports from "fuzzers".
2017-07-29 7.0.6-5 Cristy <quetzlzacatenango@image...>
* Off by one error for gradient coder (reference
const char
*value;
+ value=GetImageOption(image_info,"png:ignore-crc");
+ if (value != NULL)
+ {
+ /* Turn off CRC checking while reading */
+ png_set_crc_action(ping, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE);
+#ifdef PNG_IGNORE_ADLER32
+ /* Turn off ADLER32 checking while reading */
+ png_set_option(ping, PNG_IGNORE_ADLER32, PNG_OPTION_ON);
+#endif
+ }
+
+ ping_preserve_iCCP=MagickTrue;
+
value=GetImageOption(image_info,"profile:skip");
if (IsOptionMember("ICC",value) == MagickFalse)