mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 12:02:25 +00:00
Add PET_BUFF_COUNT guard on pet buff load to prevent out-of-bounds write
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
6dc4600596
commit
80bd422922
@ -3363,7 +3363,7 @@ void ZoneDatabase::LoadPetInfo(Client *client)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET)) {
|
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET) || e.slot >= PET_BUFF_COUNT) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user