Chromium Code Reviews| 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 if (!pdf_enable_xfa) { |
| 15 sources = [ | 15 fuzzer_test("pdfium_fuzzer") { |
| 16 "pdfium_fuzzer.cc", | 16 sources = [ |
| 17 ] | 17 "pdfium_fuzzer.cc", |
| 18 deps = [ | 18 ] |
| 19 "//third_party/pdfium", | 19 deps = [ |
| 20 "//third_party/pdfium:test_support", | 20 "//third_party/pdfium", |
| 21 "//v8", | 21 "//third_party/pdfium:test_support", |
| 22 "//v8:v8_libplatform", | 22 "//v8", |
| 23 ] | 23 "//v8:v8_libplatform", |
| 24 additional_configs = [ | 24 ] |
| 25 "//third_party/pdfium:pdfium_core_config", | 25 additional_configs = [ |
| 26 "//v8:external_startup_data", | 26 "//third_party/pdfium:pdfium_core_config", |
| 27 ] | 27 "//v8:external_startup_data", |
| 28 dict = "dicts/pdf.dict" | 28 ] |
| 29 dict = "dicts/pdf.dict" | |
| 30 } | |
| 29 } | 31 } |
| 30 | 32 |
| 31 fuzzer_test("pdf_cmap_fuzzer") { | 33 fuzzer_test("pdf_cmap_fuzzer") { |
| 32 sources = [] | 34 sources = [] |
| 33 deps = [ | 35 deps = [ |
| 34 "//third_party/pdfium/testing/libfuzzer:pdf_cmap_fuzzer", | 36 "//third_party/pdfium/testing/libfuzzer:pdf_cmap_fuzzer", |
| 35 ] | 37 ] |
| 36 } | 38 } |
| 37 | 39 |
| 38 fuzzer_test("pdf_codec_a85_fuzzer") { | 40 fuzzer_test("pdf_codec_a85_fuzzer") { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 } | 96 } |
| 95 | 97 |
| 96 fuzzer_test("pdf_streamparser_fuzzer") { | 98 fuzzer_test("pdf_streamparser_fuzzer") { |
| 97 sources = [] | 99 sources = [] |
| 98 deps = [ | 100 deps = [ |
| 99 "//third_party/pdfium/testing/libfuzzer:pdf_streamparser_fuzzer", | 101 "//third_party/pdfium/testing/libfuzzer:pdf_streamparser_fuzzer", |
| 100 ] | 102 ] |
| 101 } | 103 } |
| 102 | 104 |
| 103 if (pdf_enable_xfa) { | 105 if (pdf_enable_xfa) { |
| 106 # 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.
| |
| 107 # pdfium_fuzzer and can be removed. | |
| 108 fuzzer_test("pdfium_xfa_fuzzer") { | |
| 109 sources = [ | |
| 110 "pdfium_fuzzer.cc", | |
| 111 ] | |
| 112 deps = [ | |
| 113 "//third_party/pdfium", | |
| 114 "//third_party/pdfium:test_support", | |
| 115 "//v8", | |
| 116 "//v8:v8_libplatform", | |
| 117 ] | |
| 118 additional_configs = [ | |
| 119 "//third_party/pdfium:pdfium_core_config", | |
| 120 "//v8:external_startup_data", | |
| 121 ] | |
| 122 dict = "dicts/pdf.dict" | |
| 123 } | |
| 124 | |
| 104 fuzzer_test("pdf_codec_bmp_fuzzer") { | 125 fuzzer_test("pdf_codec_bmp_fuzzer") { |
| 105 sources = [] | 126 sources = [] |
| 106 deps = [ | 127 deps = [ |
| 107 "//third_party/pdfium/testing/libfuzzer:pdf_codec_bmp_fuzzer", | 128 "//third_party/pdfium/testing/libfuzzer:pdf_codec_bmp_fuzzer", |
| 108 ] | 129 ] |
| 109 seed_corpus = "corpora/pdf_codec_bmp" | 130 seed_corpus = "corpora/pdf_codec_bmp" |
| 110 } | 131 } |
| 111 | 132 |
| 112 fuzzer_test("pdf_codec_gif_fuzzer") { | 133 fuzzer_test("pdf_codec_gif_fuzzer") { |
| 113 sources = [] | 134 sources = [] |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 } | 196 } |
| 176 | 197 |
| 177 fuzzer_test("pdf_cfx_saxreader_fuzzer") { | 198 fuzzer_test("pdf_cfx_saxreader_fuzzer") { |
| 178 sources = [] | 199 sources = [] |
| 179 deps = [ | 200 deps = [ |
| 180 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", | 201 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", |
| 181 ] | 202 ] |
| 182 dict = "dicts/pdf_xml.dict" | 203 dict = "dicts/pdf_xml.dict" |
| 183 } | 204 } |
| 184 } | 205 } |
| OLD | NEW |