[libpng16] Use png_handler.png_ptr instead of read_ptr in png_set_options(()

This commit is contained in:
Glenn Randers-Pehrson 2017-08-21 20:19:43 -05:00
parent ddabd0c70a
commit d2533b96f3

View File

@ -91,7 +91,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
png_set_crc_action(png_handler.png_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE);
#ifdef PNG_IGNORE_ADLER32
png_set_option(read_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON);
png_set_option(png_handler.png_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON);
#endif
// Setting up reading from buffer.