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-Tag: v5.4~4 X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5777676bde793d06295abd177e9fd44128aec7;p=fping.git Fix off-by-one boundary check in seqmap code --- diff --git a/src/seqmap.c b/src/seqmap.c index 7675bc1..31bf725 100644 --- a/src/seqmap.c +++ b/src/seqmap.c @@ -105,7 +105,7 @@ SEQMAP_VALUE* seqmap_fetch(unsigned int id, int64_t now) { SEQMAP_VALUE* value; - if (id > SEQMAP_MAXSEQ) { + if (id >= SEQMAP_MAXSEQ) { return NULL; }