Fix safety_check segfault in double free test

This commit is contained in:
divanorama 2022-09-26 09:46:34 +02:00 committed by Qi Wang
parent b04e7666f2
commit 1897f185d2

View File

@ -225,8 +225,7 @@ large_dalloc_safety_checks(edata_t *edata, void *ptr, szind_t szind) {
edata_state_get(edata) != extent_state_active)) { edata_state_get(edata) != extent_state_active)) {
safety_check_fail("Invalid deallocation detected: " safety_check_fail("Invalid deallocation detected: "
"pages being freed (%p) not currently active, " "pages being freed (%p) not currently active, "
"possibly caused by double free bugs.", "possibly caused by double free bugs.", ptr);
(uintptr_t)edata_addr_get(edata));
return true; return true;
} }
size_t input_size = sz_index2size(szind); size_t input_size = sz_index2size(szind);