-
-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
yamlIssue related to YAML format backendIssue related to YAML format backend
Description
Characters that are represented by more then one byte in UTF-8 can produce java.lang.IndexOutOfBoundsException: Range [1024, 1024 + 1) out of bounds for length 1024
if there are at place where they are split up in two buffers.
This can be reproduced with the code below and jackson-dataformat-yaml-2.18.1
@Test
void test() throws JsonProcessingException {
String p = """
---
value: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000🪺"
""";
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
mapper.readValue(p, Object.class);
}
Metadata
Metadata
Assignees
Labels
yamlIssue related to YAML format backendIssue related to YAML format backend