aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-01-27 11:46:13 +0000
committerHoward Chu <hyc@symas.com>2016-01-27 14:14:27 +0000
commit222e30ec976440d04d4280bc4f4a1105bf11b807 (patch)
tree3f5c019c364689d1dd0c0abb630ae87b851e07b4
parentTweak mdb_strerror msg buffer (diff)
downloadmonero-222e30ec976440d04d4280bc4f4a1105bf11b807.tar.xz
MDB_VL32 Fix another 32bit overflow
-rw-r--r--external/db_drivers/liblmdb/mdb.c2
1 files changed, 1 insertions, 1 deletions
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;
}