diff --git a/contrib/oss-fuzz/libpng_read_fuzzer.cc b/contrib/oss-fuzz/libpng_read_fuzzer.cc index 2893f6148..6566bff30 100644 --- a/contrib/oss-fuzz/libpng_read_fuzzer.cc +++ b/contrib/oss-fuzz/libpng_read_fuzzer.cc @@ -5,7 +5,7 @@ // Use of this source code is governed by a BSD-style license that may // be found in the LICENSE file https://cs.chromium.org/chromium/src/LICENSE -// Last changed in libpng 1.6.35 [October 14, 2017] +// Last changed in libpng 1.6.35 [October 30, 2017] // The modifications in 2017 by Glenn Randers-Pehrson include // 1. addition of a PNG_CLEANUP macro, @@ -166,7 +166,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { png_set_expand(png_handler.png_ptr); png_set_packing(png_handler.png_ptr); png_set_scale_16(png_handler.png_ptr); - png_set_add_alpha(png_handler.png_ptr, 0xffff, PNG_FILLER_AFTER); + png_set_tRNS_to_alpha(png_handler.png_ptr); int passes = png_set_interlace_handling(png_handler.png_ptr);