提交 61f5f96b 编写于 作者: R Romain Vimont

Fix control event String parsing

At least 2 bytes must be available to read the length of the String.
上级 63c078ee
......@@ -93,7 +93,7 @@ public class ControlEventReader {
}
private ControlEvent parseTextControlEvent() {
if (buffer.remaining() < 1) {
if (buffer.remaining() < 2) {
return null;
}
int len = toUnsigned(buffer.getShort());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册