diff options
author | divanorama <divanorama@gmail.com> | 2022-09-26 09:46:34 +0200 |
---|---|---|
committer | Qi Wang <interwq@gwu.edu> | 2022-10-03 10:55:10 -0700 |
commit | 1897f185d2c06307fefc4d8f4512eeb13c474999 (patch) | |
tree | 6d2d7bb950019fc59354e2d28b7d889f4739023e | |
parent | b04e7666f2f29de096a170c49cb49cd8f308b7e1 (diff) | |
download | jemalloc-1897f185d2c06307fefc4d8f4512eeb13c474999.tar.gz |
Fix safety_check segfault in double free test
-rw-r--r-- | include/jemalloc/internal/arena_inlines_b.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/jemalloc/internal/arena_inlines_b.h b/include/jemalloc/internal/arena_inlines_b.h index 69617fb7..c9d7db86 100644 --- a/include/jemalloc/internal/arena_inlines_b.h +++ b/include/jemalloc/internal/arena_inlines_b.h @@ -225,8 +225,7 @@ large_dalloc_safety_checks(edata_t *edata, void *ptr, szind_t szind) { edata_state_get(edata) != extent_state_active)) { safety_check_fail("Invalid deallocation detected: " "pages being freed (%p) not currently active, " - "possibly caused by double free bugs.", - (uintptr_t)edata_addr_get(edata)); + "possibly caused by double free bugs.", ptr); return true; } size_t input_size = sz_index2size(szind); |