From d2fcbf5f82020f5499b433b9abd8f436071bdbed Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 10 Aug 2018 09:36:03 +0300 Subject: [PATCH] mdbx: backport - 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 230893c3..77799f13 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; }