Move identity_fuzz to new location. Add linkstatic=1 to fuzz target.
PiperOrigin-RevId: 315378448 Change-Id: I1df43a32fa81f2c9ff34aa2defbdb431831244ca
This commit is contained in:
parent
56c7861736
commit
b546504c58
@ -17,8 +17,6 @@ cc_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
tf_ops_fuzz_target_lib("identity")
|
|
||||||
|
|
||||||
tf_ops_fuzz_target_lib("string_to_number")
|
tf_ops_fuzz_target_lib("string_to_number")
|
||||||
|
|
||||||
tf_oss_fuzz_corpus("string_to_number")
|
tf_oss_fuzz_corpus("string_to_number")
|
||||||
|
@ -15,3 +15,17 @@ tf_fuzz_target(
|
|||||||
name = "demo_fuzz",
|
name = "demo_fuzz",
|
||||||
srcs = ["demo_fuzz.cc"],
|
srcs = ["demo_fuzz.cc"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# A trivial fuzzer with no pre-specified corpus.
|
||||||
|
# TODO(mihaimaruseac): Move fuzz_session and the op fuzzers to a subdirectory
|
||||||
|
tf_fuzz_target(
|
||||||
|
name = "identity_fuzz",
|
||||||
|
srcs = ["identity_fuzz.cc"],
|
||||||
|
deps = [
|
||||||
|
"//tensorflow/cc:cc_ops",
|
||||||
|
"//tensorflow/core/kernels/fuzzing:fuzz_session",
|
||||||
|
# Needed only to transitiviely link dependencies
|
||||||
|
"//tensorflow/cc:scope",
|
||||||
|
"//tensorflow/core:core_cpu",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
@ -76,5 +76,6 @@ def tf_fuzz_target(
|
|||||||
deps = deps, # TODO(mihaimaruseac): fuzzing lib?
|
deps = deps, # TODO(mihaimaruseac): fuzzing lib?
|
||||||
data = data, # TODO(mihaimaruseac): dict, corpus, parsers??
|
data = data, # TODO(mihaimaruseac): dict, corpus, parsers??
|
||||||
tags = tags, # TODO(mihaimaruseac): fuzzing tags?
|
tags = tags, # TODO(mihaimaruseac): fuzzing tags?
|
||||||
|
linkstatic = 1,
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user