mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
Fix possible out-of-bounds access (reported by qqshka).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6287 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
217a49c08d
commit
52cede2e9f
1 changed files with 1 additions and 1 deletions
|
@ -5020,7 +5020,7 @@ void QCBUILTIN PF_terrain_edit(pubprogfuncs_t *prinst, struct globalvars_s *pr_g
|
||||||
{
|
{
|
||||||
case ter_ent_get:
|
case ter_ent_get:
|
||||||
{
|
{
|
||||||
int idx = G_INT(OFS_PARM1);
|
unsigned int idx = G_INT(OFS_PARM1);
|
||||||
if (!mod->numentityinfo)
|
if (!mod->numentityinfo)
|
||||||
Mod_ParseEntities(mod);
|
Mod_ParseEntities(mod);
|
||||||
if (idx >= mod->numentityinfo || !mod->entityinfo[idx].keyvals)
|
if (idx >= mod->numentityinfo || !mod->entityinfo[idx].keyvals)
|
||||||
|
|
Loading…
Reference in a new issue