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ı <[email protected]>
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();

Reply via email to