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/10/01 09:17:50 UTC
(logging-log4j2) branch 2.x updated (1e3223cfa7 -> ea6a94ac9a)
This is an automated email from the ASF dual-hosted git repository.
vy pushed a change to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
from 1e3223cfa7 Explicitly pass host in `SocketAppenderReconnectTest`
new 2e9a659045 Tune down `JsonTemplateLayoutCodecFuzzer` limits
new ea6a94ac9a Don't change JVM defaults while fuzzing
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java | 2 +-
oss-fuzz-build.sh | 8 --------
2 files changed, 1 insertion(+), 9 deletions(-)
(logging-log4j2) 01/02: Tune down `JsonTemplateLayoutCodecFuzzer` limits
Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 2e9a6590451f8f6c4a16ea196fcff24f7de25e97
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Tue Oct 1 11:16:59 2024 +0200
Tune down `JsonTemplateLayoutCodecFuzzer` limits
---
.../log4j/layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-layout-template-json-fuzz-test/src/main/java/org/apache/logging/log4j/layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java b/log4j-layout-template-json-fuzz-test/src/main/java/org/apache/logging/log4j/layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java
index 1fe836481e..b91d6baea9 100644
--- a/log4j-layout-template-json-fuzz-test/src/main/java/org/apache/logging/log4j/layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java
+++ b/log4j-layout-template-json-fuzz-test/src/main/java/org/apache/logging/log4j/layout/template/json/fuzz/JsonTemplateLayoutCodecFuzzer.java
@@ -36,7 +36,7 @@ public final class JsonTemplateLayoutCodecFuzzer {
// 2. Short enough to avoid stack overflows, which are interpreted as fuzzer failures, though they are not.
// Consider a JSON document containing more than 1024 nested objects.
// This triggers a stack overflow, which is expected, hence nothing to signal.
- private static final int MAX_STRING_LENGTH = 1024;
+ public static final int MAX_STRING_LENGTH = 512;
public static void fuzzerTestOneInput(final FuzzedDataProvider dataProvider) {
final boolean encodeFirst = dataProvider.consumeBoolean();
(logging-log4j2) 02/02: Don't change JVM defaults while fuzzing
Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit ea6a94ac9a0bc65560362818dda8cc85b97c2678
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Tue Oct 1 11:18:31 2024 +0200
Don't change JVM defaults while fuzzing
---
oss-fuzz-build.sh | 8 --------
1 file changed, 8 deletions(-)
diff --git a/oss-fuzz-build.sh b/oss-fuzz-build.sh
index 9bb83642b7..d225ba863b 100755
--- a/oss-fuzz-build.sh
+++ b/oss-fuzz-build.sh
@@ -138,13 +138,6 @@ echo "INFO: Produced using the commit ID: $commitId"
# Switch to the script directory
cd -- "\$(dirname -- "\${BASH_SOURCE[0]}")"
-# Determine JVM args
-if [[ "\$@" =~ (^| )-runs=[0-9]+(\$| ) ]]; then
- jvmArgs="-Xmx1900m:-Xss900k"
-else
- jvmArgs="-Xmx2048m:-Xss1024k"
-fi
-
# Verify the classpath
classPath="$classPath"
echo "\$classPath" | sed 's/:/\n/g' | while read classPathFilePath; do
@@ -191,7 +184,6 @@ jazzer_driver \\
--agent_path=jazzer_agent_deploy.jar \\
--cp="\$classPath" \\
--target_class="$fqcn" \\
- --jvm_args="\$jvmArgs" \\
\$@ \\
2>&1 | tee "\$cmdOutputFile" || {
retCode=\$?;