mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Add a call to png_set_packing() to the fuzzer.
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that may
|
// 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
|
// be found in the LICENSE file https://cs.chromium.org/chromium/src/LICENSE
|
||||||
|
|
||||||
// Last changed in libpng 1.6.35 [October 13, 2017]
|
// Last changed in libpng 1.6.35 [October 14, 2017]
|
||||||
|
|
||||||
// The modifications in 2017 by Glenn Randers-Pehrson include
|
// The modifications in 2017 by Glenn Randers-Pehrson include
|
||||||
// 1. addition of a PNG_CLEANUP macro,
|
// 1. addition of a PNG_CLEANUP macro,
|
||||||
@@ -164,6 +164,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||||||
// Set several transforms that browsers typically use:
|
// Set several transforms that browsers typically use:
|
||||||
png_set_gray_to_rgb(png_handler.png_ptr);
|
png_set_gray_to_rgb(png_handler.png_ptr);
|
||||||
png_set_expand(png_handler.png_ptr);
|
png_set_expand(png_handler.png_ptr);
|
||||||
|
png_set_packing(png_handler.png_ptr);
|
||||||
png_set_scale_16(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_add_alpha(png_handler.png_ptr, 0xffff, PNG_FILLER_AFTER);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user