mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-12 17:34:22 -05:00
add enforce_init call to other realloc code path
This commit is contained in:
parent
6a408ad017
commit
9a43302868
1
malloc.c
1
malloc.c
@ -964,6 +964,7 @@ EXPORT void *h_realloc(void *old, size_t size) {
|
|||||||
if (size <= max_slab_size_class && get_size_info(size).size == old_size) {
|
if (size <= max_slab_size_class && get_size_info(size).size == old_size) {
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
enforce_init();
|
||||||
} else {
|
} else {
|
||||||
enforce_init();
|
enforce_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user