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

Unified Diff: pdf/pdfium/fuzzers/BUILD.gn

Issue 2754103002: Add XFA pdfium fuzzer (Closed)
Patch Set: 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 | pdf/pdfium/fuzzers/pdfium_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = [
« no previous file with comments | « no previous file | pdf/pdfium/fuzzers/pdfium_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698