From 38d24543670dced1e27bc7dce3ecbc53ca9e031e Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Wed, 5 Oct 2022 20:19:57 -0700 Subject: [PATCH] Import clean up --- .../java/com/fasterxml/jackson/core/io/JsonStringEncoder.java | 4 ++-- .../jackson/core/fuzz/Fuzz51806JsonPointerParse818Test.java | 2 +- .../jackson/core/io/doubleparser/FastDoubleParserTest.java | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java index 9348cff89e..75bd5dfcd0 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java +++ b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java @@ -21,9 +21,9 @@ public final class JsonStringEncoder /********************************************************************** */ - private final static char[] HC = CharTypes.copyHexChars(); + private final static char[] HC = CharTypes.copyHexChars(true); - private final static byte[] HB = CharTypes.copyHexBytes(); + private final static byte[] HB = CharTypes.copyHexBytes(true); private final static int SURR1_FIRST = 0xD800; private final static int SURR1_LAST = 0xDBFF; diff --git a/src/test/java/com/fasterxml/jackson/core/fuzz/Fuzz51806JsonPointerParse818Test.java b/src/test/java/com/fasterxml/jackson/core/fuzz/Fuzz51806JsonPointerParse818Test.java index 3dda4cc7ea..81981a2509 100644 --- a/src/test/java/com/fasterxml/jackson/core/fuzz/Fuzz51806JsonPointerParse818Test.java +++ b/src/test/java/com/fasterxml/jackson/core/fuzz/Fuzz51806JsonPointerParse818Test.java @@ -8,7 +8,7 @@ public class Fuzz51806JsonPointerParse818Test extends BaseTest { // Before fix, looks like this is enough to cause StackOverflowError - private final static int TOO_DEEP_PATH = 6000; + private final static int TOO_DEEP_PATH = 10_000; // Verify that a very deep/long (by number of segments) JsonPointer // may still be parsed ok, for "simple" case (no quoted chars) diff --git a/src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserTest.java b/src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserTest.java index 07f70f7a3c..42af2ea54e 100644 --- a/src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserTest.java +++ b/src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserTest.java @@ -12,7 +12,6 @@ import org.junit.jupiter.api.DynamicNode; import org.junit.jupiter.api.TestFactory; -import java.nio.charset.StandardCharsets; import java.util.function.ToDoubleFunction; import java.util.function.ToLongFunction; import java.util.stream.Stream;