mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
use allocate_large directly in large remap path
This commit is contained in:
parent
1c899657c1
commit
7e465c621e
1 changed files with 1 additions and 1 deletions
|
@ -1436,7 +1436,7 @@ EXPORT void *h_realloc(void *old, size_t size) {
|
||||||
|
|
||||||
size_t copy_size = min(size, old_size);
|
size_t copy_size = min(size, old_size);
|
||||||
if (copy_size >= MREMAP_MOVE_THRESHOLD) {
|
if (copy_size >= MREMAP_MOVE_THRESHOLD) {
|
||||||
void *new = allocate(size);
|
void *new = allocate_large(size);
|
||||||
if (new == NULL) {
|
if (new == NULL) {
|
||||||
thread_seal_metadata();
|
thread_seal_metadata();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue