From d2533b96f32bd345fc5516a068799c5f0d4514ee Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 21 Aug 2017 20:19:43 -0500 Subject: [PATCH] [libpng16] Use png_handler.png_ptr instead of read_ptr in png_set_options(() --- contrib/oss-fuzz/libpng_read_fuzzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/oss-fuzz/libpng_read_fuzzer.cc b/contrib/oss-fuzz/libpng_read_fuzzer.cc index 0c9a57104..0dbdcfad0 100644 --- a/contrib/oss-fuzz/libpng_read_fuzzer.cc +++ b/contrib/oss-fuzz/libpng_read_fuzzer.cc @@ -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.