From: Howard Chu Date: Tue, 20 Mar 2018 18:34:56 +0000 (+0000) Subject: ITS#8819 can't use fakepage mp_ptrs directly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52328b75d08dfa8acd6d72f9fcc777ec90e7dbf;p=thirdparty%2Fopenldap.git ITS#8819 can't use fakepage mp_ptrs directly --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index fd7c76f2e0..272ac76d2f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8198,8 +8198,9 @@ prep_subDB: } else { memcpy((char *)mp + mp->mp_upper + PAGEBASE, (char *)fp + fp->mp_upper + PAGEBASE, olddata.mv_size - fp->mp_upper - PAGEBASE); + memcpy((char *)(&mp->mp_ptrs), (char *)(&fp->mp_ptrs), NUMKEYS(fp) * sizeof(mp->mp_ptrs[0])); for (i=0; imp_ptrs[i] = fp->mp_ptrs[i] + offset; + mp->mp_ptrs[i] += offset; } }