mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
bda5bb0a2b
commit
bc2085b0fc
1 changed files with 3 additions and 1 deletions
|
|
@ -12787,7 +12787,9 @@ void GameHandler::handleCompressedUpdateObject(network::Packet& packet) {
|
||||||
uint32_t decompressedSize = packet.readUInt32();
|
uint32_t decompressedSize = packet.readUInt32();
|
||||||
LOG_DEBUG(" Decompressed size: ", decompressedSize);
|
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);
|
LOG_WARNING("Invalid decompressed size: ", decompressedSize);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue