From a9244f807bb18e8fd4e2e20bb78c4fe85caefd10 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 24 Aug 2018 04:04:24 +0300 Subject: [PATCH] mdbx: backport - setup mdbx_cmp_memn() as data-comparator for safety. --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index ea2c6619..ac9ef367 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -10768,7 +10768,7 @@ static MDBX_cmp_func *mdbx_default_keycmp(unsigned flags) { static MDBX_cmp_func *mdbx_default_datacmp(unsigned flags) { return !(flags & MDBX_DUPSORT) - ? 0 + ? mdbx_cmp_memn : ((flags & MDBX_INTEGERDUP) ? mdbx_cmp_int_ua : ((flags & MDBX_REVERSEDUP) ? mdbx_cmp_memnr