From ca22eb6f12fe7d0d6b144c19f84c35b975f89779 Mon Sep 17 00:00:00 2001 From: Amit Patankar Date: Wed, 20 Jan 2021 13:38:19 -0800 Subject: [PATCH] Select only C++ fuzzers (#5021) Specify only C++ fuzzers using [bazel query filters for C++](https://docs.bazel.build/versions/master/query-how-to.html#Which_of_those_are_C_tests_). --- projects/tensorflow/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/tensorflow/build.sh b/projects/tensorflow/build.sh index ee4d2a7bb..8f793951d 100755 --- a/projects/tensorflow/build.sh +++ b/projects/tensorflow/build.sh @@ -48,7 +48,7 @@ fi # Determine all fuzz targets. To control what gets fuzzed with OSSFuzz, all # supported fuzzers are in `//tensorflow/security/fuzzing`. # Ignore the identity and AttrValues fuzzer in opensource. -declare -r FUZZERS=$(bazel query 'tests(//tensorflow/security/fuzzing/...)' | grep -v identity | grep -v AttrValues | grep -v bfloat16 | grep -v constant) +declare -r FUZZERS=$(bazel query 'kind(cc_.*, tests(//tensorflow/security/fuzzing/...))' | grep -v identity | grep -v AttrValues | grep -v bfloat16) # Build the fuzzer targets. # Pass in `--config=libc++` to link against libc++.