fix oob write when map has playerstarts for 32 players
This commit is contained in:
parent
cd24b68517
commit
f05c8ee548
1 changed files with 5 additions and 0 deletions
|
|
@ -12310,6 +12310,11 @@ static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing)
|
|||
{
|
||||
return true; // These are handled elsewhere.
|
||||
}
|
||||
else if (mthing->type > MAXPLAYERS && mthing->type <= 32) // be wary of playerstarts size! playerstarts[MAXPLAYERS]
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, "Excess player start detected %d\n", mthing->type);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue