| 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") |
| 6 |
| 5 config("ots_config") { | 7 config("ots_config") { |
| 6 include_dirs = [ "include" ] | 8 include_dirs = [ "include" ] |
| 7 } | 9 } |
| 8 | 10 |
| 9 source_set("ots") { | 11 source_set("ots") { |
| 10 sources = [ | 12 sources = [ |
| 11 "include/opentype-sanitiser.h", | 13 "include/opentype-sanitiser.h", |
| 12 "include/ots-memory-stream.h", | 14 "include/ots-memory-stream.h", |
| 13 "src/cff.cc", | 15 "src/cff.cc", |
| 14 "src/cff.h", | 16 "src/cff.h", |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 "//third_party/zlib", | 82 "//third_party/zlib", |
| 81 ] | 83 ] |
| 82 | 84 |
| 83 if (is_win) { | 85 if (is_win) { |
| 84 cflags = [ | 86 cflags = [ |
| 85 "/wd4267", # Conversion from size_t to 'type'. | 87 "/wd4267", # Conversion from size_t to 'type'. |
| 86 "/wd4334", # 32-bit shift implicitly converted to 64-bits. | 88 "/wd4334", # 32-bit shift implicitly converted to 64-bits. |
| 87 ] | 89 ] |
| 88 } | 90 } |
| 89 } | 91 } |
| 92 |
| 93 fuzzer_test("ots_fuzzer") { |
| 94 sources = [ |
| 95 "fuzz/ots_fuzzer.cc", |
| 96 ] |
| 97 deps = [ |
| 98 ":ots", |
| 99 ] |
| 100 libfuzzer_options = [ "max_len=16800" ] |
| 101 seed_corpus = "//third_party/harfbuzz-ng/fuzz/seed_corpus" |
| 102 } |
| OLD | NEW |