aboutsummaryrefslogtreecommitdiff
path: root/bazel
diff options
context:
space:
mode:
authorFabian Meumertzheim <fabian@meumertzhe.im>2021-03-22 14:49:05 +0100
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-03-22 14:57:55 +0100
commitf938920a37042376e56c7ac771886565bcfe8b5e (patch)
treec07b7a79e35e0999b59d81d563da948ec542666e /bazel
parent71ac55c6fc9d808bcc8a8e8d895f7f20141bec86 (diff)
downloadjazzer-api-f938920a37042376e56c7ac771886565bcfe8b5e.tar.gz
Revert "Do not intercept JVM-internal C stdlib calls (#45)"
This reverts commit 71ac55c6fc9d808bcc8a8e8d895f7f20141bec86.
Diffstat (limited to 'bazel')
-rw-r--r--bazel/fuzz_target.bzl8
-rwxr-xr-xbazel/fuzz_target_test_wrapper.sh1
2 files changed, 4 insertions, 5 deletions
diff --git a/bazel/fuzz_target.bzl b/bazel/fuzz_target.bzl
index 9f2fe2d5..04cf32e3 100644
--- a/bazel/fuzz_target.bzl
+++ b/bazel/fuzz_target.bzl
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-load("@rules_java//java:defs.bzl", "java_binary")
-
def java_fuzz_target_test(
name,
target_class,
@@ -31,12 +29,14 @@ def java_fuzz_target_test(
"Jazzer-Fuzz-Target-Class: %s" % target_class,
]
if hook_classes:
- deploy_manifest_lines.append("Jazzer-Hook-Classes: %s" % ":".join(hook_classes))
+ deploy_manifest_lines += [
+ "Jazzer-Hook-Classes: %s" % ":".join(hook_classes),
+ ]
# Deps can only be specified on java_binary targets with sources, which
# excludes e.g. Kotlin libraries wrapped into java_binary via runtime_deps.
target_deps = deps + ["//agent/src/main/java/com/code_intelligence/jazzer/api"] if srcs else []
- java_binary(
+ native.java_binary(
name = target_name,
srcs = srcs,
visibility = ["//visibility:private"],
diff --git a/bazel/fuzz_target_test_wrapper.sh b/bazel/fuzz_target_test_wrapper.sh
index 061ed3ae..7a2a9f7f 100755
--- a/bazel/fuzz_target_test_wrapper.sh
+++ b/bazel/fuzz_target_test_wrapper.sh
@@ -24,6 +24,5 @@ if [ $exit_code -eq 77 ] || [ $exit_code -eq 76 ]
then
exit 0
else
- echo "Unexpected exit code: $exit_code"
exit 1
fi