If ptr present check if alloc_ctx.edata == NULL

This commit is contained in:
auxten 2023-05-03 22:34:30 +08:00 committed by Qi Wang
parent 019cccc293
commit 5bac384970

View File

@ -3225,7 +3225,7 @@ arenas_lookup_ctl(tsd_t *tsd, const size_t *mib,
WRITE(ptr, void *);
ptr_not_present = emap_full_alloc_ctx_try_lookup(tsd_tsdn(tsd), &arena_emap_global, ptr,
&alloc_ctx);
if (ptr_not_present) {
if (ptr_not_present || alloc_ctx.edata == NULL) {
goto label_return;
}