mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:28:21 +08:00
mdbx: fix mdbx_env_info() to avoid null-deref in lck-free mode (coverity).
Change-Id: Ica8fe6c7f5a18af3a4d7d38ce8a1a092d5f1b2f7
This commit is contained in:
parent
aec35300c4
commit
bf8507f3ec
@ -9653,7 +9653,7 @@ int __cold mdbx_env_info(MDBX_env *env, MDBX_envinfo *arg, size_t bytes) {
|
||||
arg->me_recent_txnid != mdbx_meta_txnid_fluid(env, meta)));
|
||||
|
||||
arg->me_maxreaders = env->me_maxreaders;
|
||||
arg->me_numreaders = env->me_lck->mti_numreaders;
|
||||
arg->me_numreaders = env->me_lck ? env->me_lck->mti_numreaders : INT32_MAX;
|
||||
arg->me_dxb_pagesize = env->me_psize;
|
||||
arg->me_sys_pagesize = env->me_os_psize;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user