You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2024/09/05 14:54:55 UTC
(logging-log4j2) 01/02: Enable `pipefail` needed for correctly capturing the pipe failures
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch fuzzing
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit ccaf9f868810f7613721a7d6c64f740f78e41a48
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Thu Sep 5 16:54:42 2024 +0200
Enable `pipefail` needed for correctly capturing the pipe failures
---
oss-fuzz-build.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/oss-fuzz-build.sh b/oss-fuzz-build.sh
index 4596187afa..fc3e08d13d 100755
--- a/oss-fuzz-build.sh
+++ b/oss-fuzz-build.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
@@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# Enable strict mode
+set -euo pipefail
+IFS=$'\n\t'
+
# Read command line arguments
if [[ "$#" -ne 1 || -z "${JVM_LD_LIBRARY_PATH:-}" ]]; then
cat >&2 <<EOF
@@ -124,6 +128,10 @@ for module in *-fuzz-test; do
# OSS-Fuzz detects fuzzers by checking the presence of the magical "LLVMFuzzerTestOneInput" word, hence this line.
+# Enable strict mode
+set -euo pipefail
+IFS=\$'\n\t'
+
# Report the build
echo "Produced using the commit ID: $commitId"