We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c67612e + c37bf18 commit 0066b88Copy full SHA for 0066b88
src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java
@@ -933,7 +933,7 @@ public char[] finishCurrentSegment() throws IOException {
933
int oldLen = _currentSegment.length;
934
_segmentSize += oldLen;
935
if (_segmentSize < 0) {
936
- _reportBufferOverflow(_segmentSize, oldLen);
+ _reportBufferOverflow(_segmentSize - oldLen, oldLen);
937
}
938
_currentSize = 0;
939
validateStringLength(_segmentSize);
0 commit comments