#3489: Add command string length limit when decoding ClientCommand
This commit is contained in:
parent
958cef5084
commit
0199cb90ff
@ -32,7 +32,7 @@ public class ClientCommand extends DefinedPacket
|
|||||||
@Override
|
@Override
|
||||||
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
|
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
|
||||||
{
|
{
|
||||||
command = readString( buf );
|
command = readString( buf, 256 );
|
||||||
timestamp = buf.readLong();
|
timestamp = buf.readLong();
|
||||||
salt = buf.readLong();
|
salt = buf.readLong();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user