Skip to content
Permalink
Browse files

cgame: fix potential Out-of-bounds read on debug event print (coverity)

  • Loading branch information...
Aranud committed Mar 13, 2019
1 parent 632942d commit 0f049be69b0b403abbb28c8131b5cb5c4b2c0242
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cgame/cg_event.c
@@ -1822,7 +1822,7 @@ void CG_EntityEvent(centity_t *cent, vec3_t position)
{
CG_Printf("time:%i ent:%3i event:%3i ", cg.time, es->number, event);

if (event < EV_NONE || event > EV_MAX_EVENTS)
if (event < EV_NONE || event >= EV_MAX_EVENTS)
{
CG_Printf("UNKNOWN\n");
}

0 comments on commit 0f049be

Please sign in to comment.
You can’t perform that action at this time.