From d70b7da614b03af001e2d09c3f0a9050e71031d4 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 1 Feb 2017 12:38:12 +0000 Subject: [PATCH] PR/593: Clement Lecigne: Fix off-by-one --- src/cdf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cdf.c b/src/cdf.c index 68f2c18a..6764a427 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.86 2016/12/01 16:44:47 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.87 2017/02/01 12:38:12 christos Exp $") #endif #include @@ -891,8 +891,8 @@ cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h, DPRINTF(("Wrapped around %p < %p\n", q, p)); goto out; } - if (q > e) { - DPRINTF(("Ran of the end %p > %p\n", q, e)); + if (q >= e) { + DPRINTF(("Ran of the end %p >= %p\n", q, e)); goto out; } inp[i].pi_id = CDF_GETUINT32(p, i << 1); -- 2.40.0