projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f88b1b
)
MDB_VL32 more for 1ba5adb2ec262405f9207d6015d4f29eea548d25
author
Howard Chu
<hyc@openldap.org>
Wed, 27 Jan 2016 11:48:22 +0000
(11:48 +0000)
committer
Howard Chu
<hyc@openldap.org>
Wed, 27 Jan 2016 11:48:22 +0000
(11:48 +0000)
fix 32bit overflow in set_mapsize
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
be36d49
..
41f7e25
100644
(file)
--- 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;
}