21 lines
831 B
Diff
21 lines
831 B
Diff
diff --git a/contrib/oss-fuzz/libpng_read_fuzzer.cc b/contrib/oss-fuzz/libpng_read_fuzzer.cc
|
|
index 96ed42c8c..bfb5d9d3d 100644
|
|
--- a/contrib/oss-fuzz/libpng_read_fuzzer.cc
|
|
+++ b/contrib/oss-fuzz/libpng_read_fuzzer.cc
|
|
@@ -216,15 +216,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|
|
|
image.format = PNG_FORMAT_RGBA;
|
|
std::vector<png_byte> buffer(PNG_IMAGE_SIZE(image));
|
|
-
|
|
- // Background color (white):
|
|
- png_color background = {255, 255, 255};
|
|
-
|
|
- // Colormap (empty, but needs to have enough space for 256 entries (each of 4 uint16_t)):
|
|
- // Allocated in the stack, so no need to free it.
|
|
- png_uint_16 colormap[256*4] = {};
|
|
-
|
|
- png_image_finish_read(&image, &background, buffer.data(), 0, colormap);
|
|
+ png_image_finish_read(&image, NULL, buffer.data(), 0, NULL);
|
|
#endif
|
|
|
|
return 0;
|