Index: third_party/qcms/BUILD.gn |
diff --git a/third_party/qcms/BUILD.gn b/third_party/qcms/BUILD.gn |
index 1183569beb9f32776c4d27f5049305bd0730dcab..183ae43d6812500062c2c63d17fceab04b1979dc 100644 |
--- a/third_party/qcms/BUILD.gn |
+++ b/third_party/qcms/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") |
+ |
config("qcms_config") { |
include_dirs = [ "src" ] |
} |
@@ -48,6 +50,23 @@ static_library("qcms") { |
} |
} |
+# fuzzers BUILD depends on this target. Needed for package discovery |
+group("fuzzers") { |
+} |
+ |
+fuzzer_test("qcms_color_space_fuzzer") { |
+ sources = [ |
+ "//testing/libfuzzer/fuzzers/color_space_data.h", |
+ "qcms_color_space_fuzzer.cc", |
+ ] |
+ deps = [ |
+ ":qcms", |
+ "//base", |
+ ] |
+ dict = "//testing/libfuzzer/fuzzers/dicts/icc.dict" |
+ libfuzzer_options = [ "max_len=4194304" ] |
+} |
+ |
if (!disable_qcms) { |
executable("qcms_tests") { |
if (current_cpu == "x86" || current_cpu == "x64") { |