Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Side by Side Diff: third_party/ots/BUILD.gn

Issue 2008943002: [libfuzzer] Add ots_fuzzer for OpenTypeSanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/ots/fuzz/ots_fuzzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | third_party/ots/fuzz/ots_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698