From 9ea2fd6667834995c4d39b49a8454938f49fcb6c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 14 Oct 2018 18:30:20 -0400 Subject: [PATCH] write_after_free_check only reads data --- malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malloc.c b/malloc.c index 7a1f4e9..242ffd2 100644 --- a/malloc.c +++ b/malloc.c @@ -289,7 +289,7 @@ static void *slot_pointer(size_t size, void *slab, size_t slot) { return (char *)slab + slot * size; } -static void write_after_free_check(char *p, size_t size) { +static void write_after_free_check(const char *p, size_t size) { if (!WRITE_AFTER_FREE_CHECK) { return; }