diff options
author | Marvin Borner | 2021-02-26 14:51:13 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-26 14:51:13 +0100 |
commit | 0f00932955521c3c2fb8140176ab72f22172c298 (patch) | |
tree | 99561c0254d14c0c3536f900ee83b0341a5c8a1b /libc/mem.c | |
parent | dec16faf32e75d613e20cac175b8a0c2d3612b94 (diff) |
Started UBSan and stack-smashing check support
Diffstat (limited to 'libc/mem.c')
-rw-r--r-- | libc/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -287,8 +287,8 @@ void heap_init(u32 start) init_region->size = HEAP_INIT_SIZE - OVERHEAD; node_create_foot(init_region); node_add(&heap.bins[bin_index(init_region->size)], init_region); - heap.start = start; - heap.end = start + HEAP_INIT_SIZE; + heap.start = (u32)start; + heap.end = (u32)start + HEAP_INIT_SIZE; } static void *_malloc(u32 size) |