From ae5ee2220c7f4155d4fc4c9fb589806b1e87afa2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 28 Apr 2021 08:37:36 +0200 Subject: [PATCH] LibC: Make sure malloc() returns addresses that have an alignment of 8 --- Userland/Libraries/LibC/mallocdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/mallocdefs.h b/Userland/Libraries/LibC/mallocdefs.h index 3ad6a5f707..4b226e7b0f 100644 --- a/Userland/Libraries/LibC/mallocdefs.h +++ b/Userland/Libraries/LibC/mallocdefs.h @@ -14,7 +14,7 @@ #define MALLOC_SCRUB_BYTE 0xdc #define FREE_SCRUB_BYTE 0xed -static constexpr unsigned short size_classes[] = { 8, 16, 32, 64, 128, 256, 500, 1016, 2032, 4088, 8184, 16376, 32752, 0 }; +static constexpr unsigned short size_classes[] = { 8, 16, 32, 64, 128, 256, 504, 1016, 2032, 4088, 8184, 16376, 32752, 0 }; static constexpr size_t num_size_classes = (sizeof(size_classes) / sizeof(unsigned short)) - 1; struct CommonHeader {