From 76e1328b6b02c2233b3b72e9f7c7fe3108ef63ee Mon Sep 17 00:00:00 2001 From: izzy Date: Sat, 7 Mar 2026 18:23:01 -0500 Subject: [PATCH] fix: tighten chatpacket limits to bare mininum --- Minecraft.World/ChatPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.World/ChatPacket.cpp b/Minecraft.World/ChatPacket.cpp index 7bcfa9a90..bb191aace 100644 --- a/Minecraft.World/ChatPacket.cpp +++ b/Minecraft.World/ChatPacket.cpp @@ -57,7 +57,7 @@ void ChatPacket::read(DataInputStream *dis) int intCount = (packedCounts >> 0) & 0xF; // izzint - again, why didn't 4j patch this out?? - if (stringCount > 15 || intCount > MAX_LENGTH) + if (stringCount > 3 || intCount > 1) { throw IOException(L"ChatPacket::read - too many string arguments"); }