Index: pdf/pdfium/fuzzers/BUILD.gn |
diff --git a/pdf/pdfium/fuzzers/BUILD.gn b/pdf/pdfium/fuzzers/BUILD.gn |
index 70a043c5e3f4c1e3716447771ff42ac1d7d07a73..a647666b7a2b8937e03a132843f65ded43011088 100644 |
--- a/pdf/pdfium/fuzzers/BUILD.gn |
+++ b/pdf/pdfium/fuzzers/BUILD.gn |
@@ -11,21 +11,23 @@ import("//testing/libfuzzer/fuzzer_test.gni") |
group("fuzzers") { |
} |
-fuzzer_test("pdfium_fuzzer") { |
- sources = [ |
- "pdfium_fuzzer.cc", |
- ] |
- deps = [ |
- "//third_party/pdfium", |
- "//third_party/pdfium:test_support", |
- "//v8", |
- "//v8:v8_libplatform", |
- ] |
- additional_configs = [ |
- "//third_party/pdfium:pdfium_core_config", |
- "//v8:external_startup_data", |
- ] |
- dict = "dicts/pdf.dict" |
+if (!pdf_enable_xfa) { |
+ fuzzer_test("pdfium_fuzzer") { |
+ sources = [ |
+ "pdfium_fuzzer.cc", |
+ ] |
+ deps = [ |
+ "//third_party/pdfium", |
+ "//third_party/pdfium:test_support", |
+ "//v8", |
+ "//v8:v8_libplatform", |
+ ] |
+ additional_configs = [ |
+ "//third_party/pdfium:pdfium_core_config", |
+ "//v8:external_startup_data", |
+ ] |
+ dict = "dicts/pdf.dict" |
+ } |
} |
fuzzer_test("pdf_cmap_fuzzer") { |
@@ -101,6 +103,25 @@ fuzzer_test("pdf_streamparser_fuzzer") { |
} |
if (pdf_enable_xfa) { |
+ # If XFA is enabled in Chrome, this fuzzer becomes the same as the |
Lei Zhang
2017/03/16 18:52:19
Do you think it might be better to put this entry
dsinclair
2017/03/16 20:28:28
Done.
|
+ # pdfium_fuzzer and can be removed. |
+ fuzzer_test("pdfium_xfa_fuzzer") { |
+ sources = [ |
+ "pdfium_fuzzer.cc", |
+ ] |
+ deps = [ |
+ "//third_party/pdfium", |
+ "//third_party/pdfium:test_support", |
+ "//v8", |
+ "//v8:v8_libplatform", |
+ ] |
+ additional_configs = [ |
+ "//third_party/pdfium:pdfium_core_config", |
+ "//v8:external_startup_data", |
+ ] |
+ dict = "dicts/pdf.dict" |
+ } |
+ |
fuzzer_test("pdf_codec_bmp_fuzzer") { |
sources = [] |
deps = [ |