[libpng16] Trivial reordering of libpng_read_fuzzer.cc

This commit is contained in:
Glenn Randers-Pehrson 2017-08-31 15:01:25 -05:00
parent eb2f42aa97
commit f3a22d396a

View File

@ -68,16 +68,17 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
}
PngObjectHandler png_handler;
png_handler.png_ptr = nullptr;
png_handler.row_ptr = nullptr;
png_handler.info_ptr = nullptr;
png_handler.end_info_ptr = nullptr;
png_handler.png_ptr = png_create_read_struct
(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr);
if (!png_handler.png_ptr) {
return 0;
}
png_handler.row_ptr = nullptr;
png_handler.info_ptr = nullptr;
png_handler.end_info_ptr = nullptr;
#define PNG_CLEANUP
if(png_handler.png_ptr) \
{ \