fix MI_GUARDED build

This commit is contained in:
daanx 2024-12-10 19:44:54 -08:00
parent 2a1c346281
commit c478ddaab4
7 changed files with 30 additions and 11 deletions

View file

@ -233,8 +233,8 @@ static void test_heap_walk(void) {
}
static void test_canary_leak(void) {
char* p = mi_mallocn_tp(char, 23);
for (int i = 0; i < 23; i++) {
char* p = mi_mallocn_tp(char, 22);
for (int i = 0; i < 22; i++) {
p[i] = '0'+i;
}
puts(p);