From bc2085b0fcb0db4c3d76c0d6f78cafe6a14414c9 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 20 Mar 2026 05:59:11 -0700 Subject: [PATCH] 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. --- src/game/game_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 48d28282..62b91b4e 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -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; }