mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
#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
|
||||
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
|
||||
{
|
||||
command = readString( buf );
|
||||
command = readString( buf, 256 );
|
||||
timestamp = buf.readLong();
|
||||
salt = buf.readLong();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user