mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
add enforce_init call to other realloc code path
This commit is contained in:
parent
6a408ad017
commit
9a43302868
1 changed files with 1 additions and 0 deletions
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…
Add table
Reference in a new issue