提交 23aee396 编写于 作者: M martin

6636363: BufferUnderflowException decoding length 6 UTF-8 sequences with direct buffers

Reviewed-by: sherman
上级 5d6c970c
......@@ -326,7 +326,7 @@ class UTF_8 extends Unicode
case 12: case 13:
// 6 bytes, 31 bits
if (src.remaining() < 4)
if (src.remaining() < 5)
return CoderResult.UNDERFLOW;
if (!isContinuation(b2 = src.get()))
return CoderResult.malformedForLength(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册