From a949c9f2b090435ca63de525ee2cd1a79073f08a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Oct 2020 13:00:15 +0300 Subject: fixes #2569 (Miranda uses libmdbx unsafely) --- libs/libmdbx/src/mdbx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/libmdbx') diff --git a/libs/libmdbx/src/mdbx.c b/libs/libmdbx/src/mdbx.c index 2fa4734952..bb565a72b7 100644 --- a/libs/libmdbx/src/mdbx.c +++ b/libs/libmdbx/src/mdbx.c @@ -8872,6 +8872,9 @@ static void mdbx_cursors_eot(MDBX_txn *txn, unsigned merge) { MDBX_xcursor *mx; int i; + if (cursors == nullptr) + return; + for (i = txn->mt_numdbs; --i >= 0;) { for (mc = cursors[i]; mc; mc = next) { unsigned stage = mc->mc_signature; -- cgit v1.2.3