mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 16:37:17 +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:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user