From 1748116d1c5dbfd50da5c8d8e4c53b92b1021029 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 13 Aug 2015 22:33:55 +0200 Subject: [PATCH] libroot_debug.so: Fix missing alignment in guarded realloc. --- src/system/libroot/posix/malloc_debug/guarded_heap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp index 728ae2373a..f527ff527d 100644 --- a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp +++ b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp @@ -747,7 +747,8 @@ guarded_heap_realloc(void* address, size_t newSize) if (oldSize == newSize) return address; - void* newBlock = guarded_heap_allocate(sGuardedHeap, newSize, 0); + void* newBlock = guarded_heap_allocate(sGuardedHeap, newSize, + sDefaultAlignment); if (newBlock == NULL) return NULL;