OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # PDFium fuzzers. | 5 # PDFium fuzzers. |
6 | 6 |
7 import("//third_party/pdfium/pdfium.gni") | 7 import("//third_party/pdfium/pdfium.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 import("//testing/libfuzzer/fuzzer_test.gni") | 9 import("//testing/libfuzzer/fuzzer_test.gni") |
10 | 10 |
11 group("fuzzers") { | 11 group("fuzzers") { |
12 } | 12 } |
13 | 13 |
14 fuzzer_test("pdfium_fuzzer") { | 14 fuzzer_test("pdfium_fuzzer") { |
15 sources = [ | 15 sources = [ |
16 "pdfium_fuzzer.cc", | 16 "pdfium_fuzzer.cc", |
| 17 "pdfium_fuzzer_helper.cc", |
| 18 "pdfium_fuzzer_helper.h", |
17 ] | 19 ] |
18 deps = [ | 20 deps = [ |
19 "//third_party/pdfium", | 21 "//third_party/pdfium", |
20 "//third_party/pdfium:test_support", | 22 "//third_party/pdfium:test_support", |
21 "//v8", | 23 "//v8", |
22 "//v8:v8_libplatform", | 24 "//v8:v8_libplatform", |
23 ] | 25 ] |
24 additional_configs = [ | 26 additional_configs = [ |
25 "//third_party/pdfium:pdfium_core_config", | 27 "//third_party/pdfium:pdfium_core_config", |
26 "//v8:external_startup_data", | 28 "//v8:external_startup_data", |
27 ] | 29 ] |
28 dict = "dicts/pdf.dict" | 30 dict = "dicts/pdf.dict" |
| 31 seed_corpus = "src/third_party/pdfium/test" |
29 } | 32 } |
30 | 33 |
31 fuzzer_test("pdf_cmap_fuzzer") { | 34 fuzzer_test("pdf_cmap_fuzzer") { |
32 sources = [] | 35 sources = [] |
33 deps = [ | 36 deps = [ |
34 "//third_party/pdfium/testing/libfuzzer:pdf_cmap_fuzzer", | 37 "//third_party/pdfium/testing/libfuzzer:pdf_cmap_fuzzer", |
35 ] | 38 ] |
36 } | 39 } |
37 | 40 |
38 fuzzer_test("pdf_codec_a85_fuzzer") { | 41 fuzzer_test("pdf_codec_a85_fuzzer") { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 dict = "dicts/pdf_xml.dict" | 177 dict = "dicts/pdf_xml.dict" |
175 } | 178 } |
176 | 179 |
177 fuzzer_test("pdf_cfx_saxreader_fuzzer") { | 180 fuzzer_test("pdf_cfx_saxreader_fuzzer") { |
178 sources = [] | 181 sources = [] |
179 deps = [ | 182 deps = [ |
180 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", | 183 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", |
181 ] | 184 ] |
182 dict = "dicts/pdf_xml.dict" | 185 dict = "dicts/pdf_xml.dict" |
183 } | 186 } |
| 187 |
| 188 fuzzer_test("pdfium_xfa_fuzzer") { |
| 189 sources = [ |
| 190 "pdfium_fuzzer_helper.cc", |
| 191 "pdfium_fuzzer_helper.h", |
| 192 "pdfium_xfa_fuzzer.cc", |
| 193 ] |
| 194 deps = [ |
| 195 "//third_party/pdfium", |
| 196 "//third_party/pdfium:test_support", |
| 197 "//v8", |
| 198 "//v8:v8_libplatform", |
| 199 ] |
| 200 additional_configs = [ |
| 201 "//third_party/pdfium:pdfium_core_config", |
| 202 "//v8:external_startup_data", |
| 203 ] |
| 204 dict = "dicts/pdf.dict" |
| 205 seed_corpus = "src/third_party/pdfium/test" |
| 206 } |
184 } | 207 } |
OLD | NEW |