From 0199cb90ff36dce11d0603385ec538d61521a19a Mon Sep 17 00:00:00 2001 From: BoomEaro <21033866+BoomEaro@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:44:34 +1000 Subject: [PATCH] #3489: Add command string length limit when decoding ClientCommand --- .../java/net/md_5/bungee/protocol/packet/ClientCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/ClientCommand.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/ClientCommand.java index 9b7435fb..887ff29f 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/ClientCommand.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/ClientCommand.java @@ -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();