diff options
Diffstat (limited to 'userland/libc/malloc')
-rw-r--r-- | userland/libc/malloc/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/userland/libc/malloc/malloc.c b/userland/libc/malloc/malloc.c index 4c9621b..79d1d5f 100644 --- a/userland/libc/malloc/malloc.c +++ b/userland/libc/malloc/malloc.c @@ -171,6 +171,7 @@ void *int_malloc(size_t s, int align) { rc = c; return rc; } + randomfill(rc, s); return rc; } @@ -221,6 +222,7 @@ void free(void *p) { if (h->flags & IS_FREE) return; + randomfill(p, h->size); h->flags |= IS_FREE; merge_headers(h); } |