mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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;
|
i = (challengesmenu.hilix * CHALLENGEGRIDHEIGHT) + challengesmenu.hiliy;
|
||||||
|
|
||||||
if (challengesmenu.unlockcondition != NULL
|
if (challengesmenu.unlockcondition != NULL
|
||||||
|
&& challengesmenu.currentunlock < MAXUNLOCKABLES
|
||||||
&& ((gamedata->unlocked[challengesmenu.currentunlock] == true)
|
&& ((gamedata->unlocked[challengesmenu.currentunlock] == true)
|
||||||
|| ((challengesmenu.extradata != NULL)
|
|| ((challengesmenu.extradata != NULL)
|
||||||
&& (challengesmenu.extradata[i] & CHE_HINT))
|
&& (challengesmenu.extradata[i] & CHE_HINT))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue