From: David Schweikert Date: Sun, 17 Aug 2025 20:48:25 +0000 (+0200) Subject: Fix off-by-one boundary check in seqmap code X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ba18920e99ef1a5734c48c720a12718cf265ed0;p=fping.git Fix off-by-one boundary check in seqmap code --- diff --git a/src/seqmap.c b/src/seqmap.c index 7d1d643..a932734 100644 --- a/src/seqmap.c +++ b/src/seqmap.c @@ -106,7 +106,7 @@ SEQMAP_VALUE* seqmap_fetch(unsigned int id, int64_t now) { SEQMAP_VALUE* value; - if (id > SEQMAP_MAXSEQ) { + if (id >= SEQMAP_MAXSEQ) { return NULL; }