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

Unified Diff: testing/libfuzzer/fuzzers/BUILD.gn

Issue 2728103003: Add a fuzzer for png_process_data (Closed)
Patch Set: More sharing Created 3 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 | « no previous file | testing/libfuzzer/fuzzers/libpng_read_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/fuzzers/BUILD.gn
diff --git a/testing/libfuzzer/fuzzers/BUILD.gn b/testing/libfuzzer/fuzzers/BUILD.gn
index 7e3d3f2d39cac53af43233dc5bf332f231d6ad89..291d7ec0f86020cbdfc3373a525b87167a01d1d2 100644
--- a/testing/libfuzzer/fuzzers/BUILD.gn
+++ b/testing/libfuzzer/fuzzers/BUILD.gn
@@ -163,6 +163,12 @@ fuzzer_test("base_json_reader_fuzzer") {
]
}
+libpng_seed_corpuses = [
mmoroz 2017/03/06 19:37:30 Nice! Maybe even rename it to "png_seed_corpus", b
+ "//cc/test/data",
+ "//third_party/WebKit/LayoutTests/images/png-suite/samples",
+ "//third_party/WebKit/LayoutTests/images/resources/pngfuzz",
+]
+
fuzzer_test("gfx_png_image_fuzzer") {
sources = [
"gfx_png_image_fuzzer.cc",
@@ -172,11 +178,7 @@ fuzzer_test("gfx_png_image_fuzzer") {
"//ui/gfx",
]
dict = "dicts/png.dict"
- seed_corpuses = [
- "//cc/test/data",
- "//third_party/WebKit/LayoutTests/images/png-suite/samples",
- "//third_party/WebKit/LayoutTests/images/resources/pngfuzz",
- ]
+ seed_corpuses = libpng_seed_corpuses
}
fuzzer_test("zlib_uncompress_fuzzer") {
@@ -207,11 +209,20 @@ fuzzer_test("libpng_read_fuzzer") {
"//third_party/libpng",
]
dict = "dicts/png.dict"
- seed_corpuses = [
- "//cc/test/data",
- "//third_party/WebKit/LayoutTests/images/png-suite/samples",
- "//third_party/WebKit/LayoutTests/images/resources/pngfuzz",
+ seed_corpuses = libpng_seed_corpuses
+}
+
+fuzzer_test("libpng_progressive_read_fuzzer") {
+ sources = [
+ "libpng_read_fuzzer.cc",
]
+ defines = [ "PNG_FUZZ_PROGRESSIVE" ]
+ deps = [
+ "//base",
+ "//third_party/libpng",
+ ]
+ dict = "dicts/png.dict"
+ seed_corpuses = libpng_seed_corpuses
}
fuzzer_test("v8_script_parser_fuzzer") {
« no previous file with comments | « no previous file | testing/libfuzzer/fuzzers/libpng_read_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698