Index: testing/libfuzzer/fuzzers/libexif_parser_fuzzer.cc |
diff --git a/testing/libfuzzer/fuzzers/gfx_png_image_fuzzer.cc b/testing/libfuzzer/fuzzers/libexif_parser_fuzzer.cc |
similarity index 65% |
copy from testing/libfuzzer/fuzzers/gfx_png_image_fuzzer.cc |
copy to testing/libfuzzer/fuzzers/libexif_parser_fuzzer.cc |
index f7161592af242b08ca73717b71e00ac7c2778e2d..3e15edb197bded706705db83732e4552c6177981 100644 |
--- a/testing/libfuzzer/fuzzers/gfx_png_image_fuzzer.cc |
+++ b/testing/libfuzzer/fuzzers/libexif_parser_fuzzer.cc |
@@ -5,11 +5,11 @@ |
#include <stddef.h> |
#include <stdint.h> |
-#include "ui/gfx/image/image.h" |
+#include "libexif/exif-data.h" |
+#include "libexif/exif-system.h" |
-// Entry point for LibFuzzer. |
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
- gfx::Image::CreateFrom1xPNGBytes(data, size); |
+ ExifData* exif_data = exif_data_new_from_data(data, size); |
+ exif_data_unref(exif_data); |
return 0; |
} |
- |