fix: increase compressed UPDATE_OBJECT decompressed size limit to 5MB

Capital cities and large raids can produce UPDATE_OBJECT packets that
decompress to more than 1MB. The real WoW client handles up to ~10MB.
Bump the limit from 1MB to 5MB to avoid silently dropping entity
updates in densely populated areas like Dalaran or 40-man raids.
This commit is contained in:
Kelsi 2026-03-20 05:59:11 -07:00
parent bda5bb0a2b
commit bc2085b0fc

View file

@ -12787,7 +12787,9 @@ void GameHandler::handleCompressedUpdateObject(network::Packet& packet) {
uint32_t decompressedSize = packet.readUInt32();
LOG_DEBUG(" Decompressed size: ", decompressedSize);
if (decompressedSize == 0 || decompressedSize > 1024 * 1024) {
// Capital cities and large raids can produce very large update packets.
// The real WoW client handles up to ~10MB; 5MB covers all practical cases.
if (decompressedSize == 0 || decompressedSize > 5 * 1024 * 1024) {
LOG_WARNING("Invalid decompressed size: ", decompressedSize);
return;
}