OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
6 | 6 |
7 config("ots_config") { | 7 config("ots_config") { |
8 include_dirs = [ "include" ] | 8 include_dirs = [ "include" ] |
9 } | 9 } |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "src/vhea.h", | 70 "src/vhea.h", |
71 "src/vmtx.cc", | 71 "src/vmtx.cc", |
72 "src/vmtx.h", | 72 "src/vmtx.h", |
73 "src/vorg.cc", | 73 "src/vorg.cc", |
74 "src/vorg.h", | 74 "src/vorg.h", |
75 ] | 75 ] |
76 | 76 |
77 public_configs = [ ":ots_config" ] | 77 public_configs = [ ":ots_config" ] |
78 | 78 |
79 deps = [ | 79 deps = [ |
80 "//third_party/brotli", | 80 "//third_party/brotli:dec", |
81 "//third_party/woff2:woff2_dec", | 81 "//third_party/woff2:woff2_dec", |
82 "//third_party/zlib", | 82 "//third_party/zlib", |
83 ] | 83 ] |
84 | 84 |
85 if (is_win) { | 85 if (is_win) { |
86 cflags = [ | 86 cflags = [ |
87 "/wd4267", # Conversion from size_t to 'type'. | 87 "/wd4267", # Conversion from size_t to 'type'. |
88 "/wd4334", # 32-bit shift implicitly converted to 64-bits. | 88 "/wd4334", # 32-bit shift implicitly converted to 64-bits. |
89 ] | 89 ] |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 fuzzer_test("ots_fuzzer") { | 93 fuzzer_test("ots_fuzzer") { |
94 sources = [ | 94 sources = [ |
95 "fuzz/ots_fuzzer.cc", | 95 "fuzz/ots_fuzzer.cc", |
96 ] | 96 ] |
97 deps = [ | 97 deps = [ |
98 ":ots", | 98 ":ots", |
99 ] | 99 ] |
100 libfuzzer_options = [ "max_len=16800" ] | 100 libfuzzer_options = [ "max_len=16800" ] |
101 seed_corpus = "//third_party/harfbuzz-ng/fuzz/seed_corpus" | 101 seed_corpus = "//third_party/harfbuzz-ng/fuzz/seed_corpus" |
102 } | 102 } |
OLD | NEW |