#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

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();