Skip to content

Commit

Permalink
Fix possible out-of-bounds access (reported by qqshka).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6287 fc73d0e0-1445-4013-8a0c-d673dee63da5
  • Loading branch information
Spoike committed Jul 28, 2022
1 parent 217a49c commit 52cede2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/gl/gl_heightmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5020,7 +5020,7 @@ void QCBUILTIN PF_terrain_edit(pubprogfuncs_t *prinst, struct globalvars_s *pr_g
{
case ter_ent_get:
{
int idx = G_INT(OFS_PARM1);
unsigned int idx = G_INT(OFS_PARM1);
if (!mod->numentityinfo)
Mod_ParseEntities(mod);
if (idx >= mod->numentityinfo || !mod->entityinfo[idx].keyvals)
Expand Down

0 comments on commit 52cede2

Please sign in to comment.