mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix(combatlog): enforce full spell start fixed-field bounds
This commit is contained in:
parent
918762501f
commit
e0ac81450d
1 changed files with 2 additions and 2 deletions
|
|
@ -3701,8 +3701,8 @@ bool SpellStartParser::parse(network::Packet& packet, SpellStartData& data) {
|
||||||
}
|
}
|
||||||
data.casterUnit = UpdateObjectParser::readPackedGuid(packet);
|
data.casterUnit = UpdateObjectParser::readPackedGuid(packet);
|
||||||
|
|
||||||
// Validate remaining fixed fields (castCount + spellId + castFlags + castTime = 9 bytes)
|
// Validate remaining fixed fields (castCount + spellId + castFlags + castTime = 13 bytes)
|
||||||
if (packet.getSize() - packet.getReadPos() < 9) {
|
if (packet.getSize() - packet.getReadPos() < 13) {
|
||||||
packet.setReadPos(startPos);
|
packet.setReadPos(startPos);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue