fix(combatlog): enforce full spell start fixed-field bounds

This commit is contained in:
Kelsi 2026-03-14 11:03:02 -07:00
parent 918762501f
commit e0ac81450d

View file

@ -3701,8 +3701,8 @@ bool SpellStartParser::parse(network::Packet& packet, SpellStartData& data) {
}
data.casterUnit = UpdateObjectParser::readPackedGuid(packet);
// Validate remaining fixed fields (castCount + spellId + castFlags + castTime = 9 bytes)
if (packet.getSize() - packet.getReadPos() < 9) {
// Validate remaining fixed fields (castCount + spellId + castFlags + castTime = 13 bytes)
if (packet.getSize() - packet.getReadPos() < 13) {
packet.setReadPos(startPos);
return false;
}