Skip to content

Commit 1fb46ca

Browse files
committed
Merge branch '2.x' into 3.0
2 parents 5ed863e + 67912b2 commit 1fb46ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/tools/jackson/core/io/UTF32Reader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public int read(char[] cbuf, int start, int len) throws IOException
116116
if (_buffer == null) { return -1; }
117117
if (len < 1) { return len; }
118118
// Let's then ensure there's enough room...
119-
if (start < 0 || (start+len) > cbuf.length) {
119+
if (start < 0 || len < 0 || start > (cbuf.length - len)) {
120120
reportBounds(cbuf, start, len);
121121
}
122122

0 commit comments

Comments
 (0)