From b4fd29a67b3f72894ff7d7b60c171c55c23bb9dc Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 10 Aug 2018 09:36:03 +0300 Subject: [PATCH] mdbx: fix assert-condition inside mdbx_pnl_xappend(). Change-Id: Id5ac89c85b7e673c44d60a626c805fe666d221bc --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index f7a3a875..1d8cdf8a 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -536,7 +536,7 @@ static void mdbx_txl_free(MDBX_TXL list) { /* Append ID to PNL. The PNL must be big enough. */ static __inline void mdbx_pnl_xappend(MDBX_PNL pl, pgno_t id) { - assert(pl[0] + (size_t)1 < MDBX_PNL_ALLOCLEN(pl)); + assert(pl[0] + (size_t)1 <= MDBX_PNL_ALLOCLEN(pl)); pl[pl[0] += 1] = id; }