| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 "//v8:external_startup_data", | 26 "//v8:external_startup_data", |
| 27 ] | 27 ] |
| 28 dict = "dicts/pdf.dict" | 28 dict = "dicts/pdf.dict" |
| 29 } | 29 } |
| 30 | 30 |
| 31 fuzzer_test("pdf_jpx_fuzzer") { | 31 fuzzer_test("pdf_jpx_fuzzer") { |
| 32 sources = [] | 32 sources = [] |
| 33 deps = [ | 33 deps = [ |
| 34 "//third_party/pdfium/testing/libfuzzer:pdf_jpx_fuzzer", | 34 "//third_party/pdfium/testing/libfuzzer:pdf_jpx_fuzzer", |
| 35 ] | 35 ] |
| 36 seed_corpus = "corpora/pdf_jpx" |
| 36 } | 37 } |
| 37 | 38 |
| 38 if (pdf_enable_xfa) { | 39 if (pdf_enable_xfa) { |
| 39 fuzzer_test("pdf_codec_bmp_fuzzer") { | 40 fuzzer_test("pdf_codec_bmp_fuzzer") { |
| 40 sources = [] | 41 sources = [] |
| 41 deps = [ | 42 deps = [ |
| 42 "//third_party/pdfium/testing/libfuzzer:pdf_codec_bmp_fuzzer", | 43 "//third_party/pdfium/testing/libfuzzer:pdf_codec_bmp_fuzzer", |
| 43 ] | 44 ] |
| 45 seed_corpus = "corpora/pdf_codec_bmp" |
| 44 } | 46 } |
| 45 | 47 |
| 46 fuzzer_test("pdf_codec_gif_fuzzer") { | 48 fuzzer_test("pdf_codec_gif_fuzzer") { |
| 47 sources = [] | 49 sources = [] |
| 48 deps = [ | 50 deps = [ |
| 49 "//third_party/pdfium/testing/libfuzzer:pdf_codec_gif_fuzzer", | 51 "//third_party/pdfium/testing/libfuzzer:pdf_codec_gif_fuzzer", |
| 50 ] | 52 ] |
| 53 dict = "dicts/pdf_codec_gif.dict" |
| 54 seed_corpus = "corpora/pdf_codec_gif" |
| 51 } | 55 } |
| 52 | 56 |
| 53 fuzzer_test("pdf_codec_jpeg_fuzzer") { | 57 fuzzer_test("pdf_codec_jpeg_fuzzer") { |
| 54 sources = [] | 58 sources = [] |
| 55 deps = [ | 59 deps = [ |
| 56 "//third_party/pdfium/testing/libfuzzer:pdf_codec_jpeg_fuzzer", | 60 "//third_party/pdfium/testing/libfuzzer:pdf_codec_jpeg_fuzzer", |
| 57 ] | 61 ] |
| 62 dict = "dicts/pdf_codec_jpeg.dict" |
| 63 seed_corpus = "corpora/pdf_codec_jpeg" |
| 58 } | 64 } |
| 59 | 65 |
| 60 fuzzer_test("pdf_codec_png_fuzzer") { | 66 fuzzer_test("pdf_codec_png_fuzzer") { |
| 61 sources = [] | 67 sources = [] |
| 62 deps = [ | 68 deps = [ |
| 63 "//third_party/pdfium/testing/libfuzzer:pdf_codec_png_fuzzer", | 69 "//third_party/pdfium/testing/libfuzzer:pdf_codec_png_fuzzer", |
| 64 ] | 70 ] |
| 71 dict = "dicts/pdf_codec_png.dict" |
| 72 seed_corpus = "corpora/pdf_codec_png" |
| 65 } | 73 } |
| 66 | 74 |
| 67 fuzzer_test("pdf_codec_tiff_fuzzer") { | 75 fuzzer_test("pdf_codec_tiff_fuzzer") { |
| 68 sources = [] | 76 sources = [] |
| 69 deps = [ | 77 deps = [ |
| 70 "//third_party/pdfium/testing/libfuzzer:pdf_codec_tiff_fuzzer", | 78 "//third_party/pdfium/testing/libfuzzer:pdf_codec_tiff_fuzzer", |
| 71 ] | 79 ] |
| 80 dict = "dicts/pdf_codec_tiff.dict" |
| 81 seed_corpus = "corpora/pdf_codec_tiff" |
| 72 } | 82 } |
| 73 | 83 |
| 74 fuzzer_test("pdf_css_fuzzer") { | 84 fuzzer_test("pdf_css_fuzzer") { |
| 75 sources = [] | 85 sources = [] |
| 76 deps = [ | 86 deps = [ |
| 77 "//third_party/pdfium/testing/libfuzzer:pdf_css_fuzzer", | 87 "//third_party/pdfium/testing/libfuzzer:pdf_css_fuzzer", |
| 78 ] | 88 ] |
| 79 dict = "dicts/pdf_css.dict" | 89 dict = "dicts/pdf_css.dict" |
| 80 } | 90 } |
| 81 | 91 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 96 } | 106 } |
| 97 | 107 |
| 98 fuzzer_test("pdf_cfx_saxreader_fuzzer") { | 108 fuzzer_test("pdf_cfx_saxreader_fuzzer") { |
| 99 sources = [] | 109 sources = [] |
| 100 deps = [ | 110 deps = [ |
| 101 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", | 111 "//third_party/pdfium/testing/libfuzzer:pdf_cfx_saxreader_fuzzer", |
| 102 ] | 112 ] |
| 103 dict = "dicts/pdf_xml.dict" | 113 dict = "dicts/pdf_xml.dict" |
| 104 } | 114 } |
| 105 } | 115 } |
| OLD | NEW |