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


The following commit(s) were added to refs/heads/fuzzing by this push:
     new bfa01e42f7 Fix fuzzer detection
bfa01e42f7 is described below

commit bfa01e42f706e814c264a2f99c5b573e6c67a5b8
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Thu Aug 8 13:36:50 2024 +0200

    Fix fuzzer detection
---
 oss-fuzz-build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/oss-fuzz-build.sh b/oss-fuzz-build.sh
index bb80a46f6d..69fc5c8d5c 100755
--- a/oss-fuzz-build.sh
+++ b/oss-fuzz-build.sh
@@ -109,11 +109,13 @@ for module in *-fuzz-test; do
     className="${fqcn##*.}"
     scriptPath="$outputDir/$module-$className"
     cat >"$scriptPath" <<EOF
-#!/bin/bash
+#!/bin/bash -eu
 #
 # This file is auto-generated by 
https://github.com/apache/logging-log4j2/tree/2.x/oss-fuzz-build.sh
 #
 
+# OSS-Fuzz detects fuzzers by checking the presence of the magical 
`LLVMFuzzerTestOneInput` word, hence this line.
+
 # Determine JVM args
 if [[ "\$@" =~ (^| )-runs=[0-9]+($| ) ]]; then
   jvmArgs="-Xmx1900m:-Xss900k"

Reply via email to