From: Howard Chu Date: Wed, 27 Jan 2016 11:48:22 +0000 (+0000) Subject: MDB_VL32 more for 1ba5adb2ec262405f9207d6015d4f29eea548d25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f653ca205d7358be7c639b8711492560de3de2a;p=openldap MDB_VL32 more for 1ba5adb2ec262405f9207d6015d4f29eea548d25 fix 32bit overflow in set_mapsize --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index be36d4967e..41f7e25fcc 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4272,7 +4272,7 @@ mdb_env_set_mapsize(MDB_env *env, mdb_size_t size) size = meta->mm_mapsize; { /* Silently round up to minimum if the size is too small */ - size_t minsize = (meta->mm_last_pg + 1) * env->me_psize; + mdb_size_t minsize = (meta->mm_last_pg + 1) * env->me_psize; if (size < minsize) size = minsize; }