fix: tighten chatpacket limits to bare mininum

This commit is contained in:
izzy 2026-03-07 18:23:01 -05:00
parent d31479a0ab
commit 76e1328b6b

View file

@ -57,7 +57,7 @@ void ChatPacket::read(DataInputStream *dis)
int intCount = (packedCounts >> 0) & 0xF; int intCount = (packedCounts >> 0) & 0xF;
// izzint - again, why didn't 4j patch this out?? // 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"); throw IOException(L"ChatPacket::read - too many string arguments");
} }