We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd8f41 commit b15e18fCopy full SHA for b15e18f
msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java
@@ -965,7 +965,7 @@ public String unpackString() throws IOException {
965
decodeBuffer.clear();
966
StringBuilder sb = new StringBuilder();
967
while(cursor < strLen) {
968
- if (!ensure(strLen))
+ if (!ensure(strLen-cursor))
969
throw new EOFException();
970
971
int readLen = Math.min(buffer.size() - position, strLen-cursor);
0 commit comments