summaryrefslogtreecommitdiff
path: root/testing/libfuzzer/BUILD.gn
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-14 07:34:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-14 07:34:20 -0700
commit756d37943415ca15d491b79ba78012225a06db76 (patch)
tree817ecb7fc2a84e7562006931ff97ad46858fe4d3 /testing/libfuzzer/BUILD.gn
parentfc6326d6cd51878c8ec3b8b51767dce368d07f67 (diff)
downloadpdfium-756d37943415ca15d491b79ba78012225a06db76.tar.xz
Add fuzzer for FDE CSS syntax parser.
This CL adds a fuzzer for the CSS Syntax parser in XFA. BUG=chromium:587126 Review-Url: https://codereview.chromium.org/2068513002
Diffstat (limited to 'testing/libfuzzer/BUILD.gn')
-rw-r--r--testing/libfuzzer/BUILD.gn16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn
index 5382313e01..3659c36225 100644
--- a/testing/libfuzzer/BUILD.gn
+++ b/testing/libfuzzer/BUILD.gn
@@ -5,6 +5,8 @@
import("../../pdfium.gni")
config("libfuzzer_config") {
+ configs = [ "//third_party/pdfium:pdfium_core_config" ]
+
defines = [
"PNG_PREFIX",
"PNG_USE_READ_MACROS",
@@ -122,6 +124,20 @@ if (pdf_enable_xfa) {
":libfuzzer_config",
]
}
+ source_set("pdf_css_fuzzer") {
+ testonly = true
+ sources = [
+ "pdf_css_fuzzer.cc",
+ ]
+ deps = [
+ "//third_party/pdfium:pdfium",
+ ]
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ ":libfuzzer_config",
+ ]
+ }
}
source_set("pdf_jpx_fuzzer") {