mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-27 04:02:37 +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;
|
||||
}
|
||||
|
||||
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET)) {
|
||||
if (e.slot >= RuleI(Spells, MaxTotalSlotsPET) || e.slot >= PET_BUFF_COUNT) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user