tensorflow: enable more targets (#9801)

Includes some new fuzzers that are placed outside `security/fuzzing`,
e.g. `saved_model_fuzzer`
This commit is contained in:
DavidKorczynski 2023-02-24 19:29:12 +00:00 committed by GitHub
parent 0f2fff3002
commit c96a0eb202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
git apply --ignore-space-change --ignore-whitespace $SRC/fuzz_patch.patch git apply --ignore-space-change --ignore-whitespace $SRC/fuzz_patch.patch
# Rename all fuzzer rules to oss-fuzz rules. # Rename all fuzzer rules to oss-fuzz rules.
find $SRC/tensorflow/tensorflow/security/fuzzing -name "BUILD" -exec sed -i 's/tf_cc_fuzz_test/tf_oss_fuzz_fuzztest/g' {} \; find $SRC/tensorflow/tensorflow/ -name "BUILD" -exec sed -i 's/tf_cc_fuzz_test/tf_oss_fuzz_fuzztest/g' {} \;
# Overwrite compiler flags that break the oss-fuzz build # Overwrite compiler flags that break the oss-fuzz build
sed -i 's/build:linux --copt=\"-Wno-unknown-warning\"/# overwritten/g' ./.bazelrc sed -i 's/build:linux --copt=\"-Wno-unknown-warning\"/# overwritten/g' ./.bazelrc
@ -121,7 +121,7 @@ fi
export FUZZTEST_DO_SYNC="no" export FUZZTEST_DO_SYNC="no"
# Set fuzz targets # Set fuzz targets
export FUZZTEST_TARGET_FOLDER="//tensorflow/security/fuzzing/..." export FUZZTEST_TARGET_FOLDER="//tensorflow/security/fuzzing/...+//tensorflow/cc/saved_model/...+//tensorflow/cc/framework/fuzzing/...+//tensorflow/core/common_runtime/...+//tensorflow/core/framework/..."
export FUZZTEST_EXTRA_TARGETS="//tensorflow/core/kernels/fuzzing:all" export FUZZTEST_EXTRA_TARGETS="//tensorflow/core/kernels/fuzzing:all"
# Overwrite fuzz targets in CI. # Overwrite fuzz targets in CI.