From 222e30ec976440d04d4280bc4f4a1105bf11b807 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 27 Jan 2016 11:46:13 +0000 Subject: MDB_VL32 Fix another 32bit overflow --- external/db_drivers/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'external/db_drivers/liblmdb/mdb.c') diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c index 2ce2614f6..d524d3523 100644 --- a/external/db_drivers/liblmdb/mdb.c +++ b/external/db_drivers/liblmdb/mdb.c @@ -4273,7 +4273,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; } -- cgit v1.2.3