mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 00:42:32 +00:00
Add an extra guard for unlock condition string drawing to prevent hypothetical out of bounds read
This commit is contained in:
parent
6274b1f31f
commit
c628014c47
1 changed files with 1 additions and 0 deletions
|
|
@ -4950,6 +4950,7 @@ challengedesc:
|
|||
i = (challengesmenu.hilix * CHALLENGEGRIDHEIGHT) + challengesmenu.hiliy;
|
||||
|
||||
if (challengesmenu.unlockcondition != NULL
|
||||
&& challengesmenu.currentunlock < MAXUNLOCKABLES
|
||||
&& ((gamedata->unlocked[challengesmenu.currentunlock] == true)
|
||||
|| ((challengesmenu.extradata != NULL)
|
||||
&& (challengesmenu.extradata[i] & CHE_HINT))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue