diff options
author | tsepez <tsepez@chromium.org> | 2016-08-18 14:37:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-18 14:37:07 -0700 |
commit | 7996fe888cb98597cd1608af05fb59f45c837fc6 (patch) | |
tree | ecfcf15f788be1d2982a279de77d49d8e20a6c94 /testing/libfuzzer/BUILD.gn | |
parent | 1a8946b09884393d7dc4941e59b3172a7e473b01 (diff) | |
download | pdfium-7996fe888cb98597cd1608af05fb59f45c837fc6.tar.xz |
Add llvm fuzzer for CPDF_PSEngine
Put class definition into its own header file so fuzzer can find it.
Fix a pair of div by 0s immediately hit by the fuzzer.
Review-Url: https://codereview.chromium.org/2253193003
Diffstat (limited to 'testing/libfuzzer/BUILD.gn')
-rw-r--r-- | testing/libfuzzer/BUILD.gn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn index 1b7a7fb456..718a1db3c0 100644 --- a/testing/libfuzzer/BUILD.gn +++ b/testing/libfuzzer/BUILD.gn @@ -168,3 +168,18 @@ source_set("pdf_jpx_fuzzer") { ":libfuzzer_config", ] } + +source_set("pdf_psengine_fuzzer") { + testonly = true + sources = [ + "pdf_psengine_fuzzer.cc", + ] + deps = [ + "//third_party/pdfium:pdfium", + ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ + "//build/config/compiler:no_chromium_code", + ":libfuzzer_config", + ] +} |