#3489: Add command string length limit when decoding ClientCommand

This commit is contained in:
BoomEaro 2023-07-15 10:44:34 +10:00 committed by md_5
parent 958cef5084
commit 0199cb90ff
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -32,7 +32,7 @@ public class ClientCommand extends DefinedPacket
@Override
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{
command = readString( buf );
command = readString( buf, 256 );
timestamp = buf.readLong();
salt = buf.readLong();