fix multi-threaded free to unprotect guarded blocks

This commit is contained in:
daanx 2024-08-20 09:55:57 -07:00
parent 0c19eb60cf
commit 635cf7af6a
5 changed files with 44 additions and 20 deletions

View file

@ -271,7 +271,7 @@ int main(void) {
mi_free(p);
};
#if !(MI_TRACK_VALGRIND || MI_TRACK_ASAN)
#if !(MI_TRACK_VALGRIND || MI_TRACK_ASAN || MI_DEBUG_GUARDED)
CHECK_BODY("fill-freed-small") {
size_t malloc_size = MI_SMALL_SIZE_MAX / 2;
uint8_t* p = (uint8_t*)mi_malloc(malloc_size);