mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: tighten chatpacket limits to bare mininum
This commit is contained in:
parent
d31479a0ab
commit
76e1328b6b
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue