Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: testing/libfuzzer/fuzzers/libexif_parser_fuzzer.cc

Issue 1791623002: Revert of Media Galleries Partial Deprecation: Remove image metadata & libexif. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual revert/rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | third_party/libexif/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
-
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | third_party/libexif/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698