Skip to content
Permalink
Browse files

cgame: fix potential out-of-bound write in lagometer samples count (c…

…overity)
  • Loading branch information...
Aranud committed Mar 13, 2019
1 parent bb72b87 commit 69d5c67c4c68f53a30344649b7c44d67d661fc81
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cgame/cg_draw_hud.c
@@ -2321,7 +2321,7 @@ void CG_AddLagometerSnapshotInfo(snapshot_t *snap)
// compute server framerate
index = cgs.sampledStat.count;

if (cgs.sampledStat.count <= LAG_SAMPLES)
if (cgs.sampledStat.count < LAG_SAMPLES)
{
cgs.sampledStat.count++;
}

0 comments on commit 69d5c67

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