[libpng16] Initialize png_handler.row_ptr in

contrib/oss-fuzz/libpng_read_fuzzer.cc
This commit is contained in:
Glenn Randers-Pehrson 2017-08-30 06:47:55 -05:00
parent d3220babe2
commit efaf42e5df

View File

@ -87,6 +87,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
return 0;
}
png_handler.row_ptr = nullptr;
png_set_crc_action(png_handler.png_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE);
#ifdef PNG_IGNORE_ADLER32
png_set_option(png_handler.png_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON);