[libpng16] Nullify all pointers in PNG_CLEANUP of libpng_read_fuzzer.cc

This commit is contained in:
Glenn Randers-Pehrson 2017-08-31 16:46:15 -05:00
parent f3a22d396a
commit 84a5bf83ff

View File

@ -92,6 +92,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
nullptr); \
else \
png_destroy_read_struct(&png_handler.png_ptr, nullptr, nullptr); \
png_handler.png_ptr = nullptr; \
png_handler.row_ptr = nullptr; \
png_handler.info_ptr = nullptr; \
png_handler.end_info_ptr = nullptr;
}
png_handler.info_ptr = png_create_info_struct(png_handler.png_ptr);