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

Unified Diff: third_party/sfntly/BUILD.gn

Issue 2268863003: Add a fuzzer for SfntlyWrapper::SubsetFont(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test corpus Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/fuzzed_data_provider.cc ('k') | third_party/sfntly/fuzzers/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sfntly/BUILD.gn
diff --git a/third_party/sfntly/BUILD.gn b/third_party/sfntly/BUILD.gn
index 621b463197d7a48683bcfde2e3523ee0721e9ae2..b801367337b0c771a69bb90d6a415d3a34c82117 100644
--- a/third_party/sfntly/BUILD.gn
+++ b/third_party/sfntly/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/libfuzzer/fuzzer_test.gni")
+
declare_args() {
# Flip to true to build sfntly sample programs.
build_sfntly_samples = false
@@ -158,6 +160,17 @@ static_library("sfntly") {
]
}
+fuzzer_test("sfntly_fuzzer") {
+ sources = [
+ "fuzzers/subset_font_fuzzer.cc",
+ ]
+ deps = [
+ ":sfntly",
+ "//base/test:test_support",
+ ]
+ seed_corpus = "fuzzers/corpora/sfntly_fuzzer"
+}
+
if (build_sfntly_samples) {
source_set("sfntly_subtly") {
sources = [
« no previous file with comments | « base/test/fuzzed_data_provider.cc ('k') | third_party/sfntly/fuzzers/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698