mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
MDB_VL32 Fix another 32bit overflow
This commit is contained in:
parent
3ca6e853f6
commit
222e30ec97
1 changed files with 1 additions and 1 deletions
2
external/db_drivers/liblmdb/mdb.c
vendored
2
external/db_drivers/liblmdb/mdb.c
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue