From 1897f185d2c06307fefc4d8f4512eeb13c474999 Mon Sep 17 00:00:00 2001 From: divanorama Date: Mon, 26 Sep 2022 09:46:34 +0200 Subject: [PATCH] Fix safety_check segfault in double free test --- include/jemalloc/internal/arena_inlines_b.h | 3 +-- 1 file changed, 1 insertion(+), 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);