From 2f9ae7b7a7f51487fb5c8cacc50050a25b56f7f3 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Tue, 23 Oct 2018 12:51:09 -0500 Subject: [PATCH] Fix bin_index_up --- src/malloc/malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c index d72883e1..b583c240 100644 --- a/src/malloc/malloc.c +++ b/src/malloc/malloc.c @@ -99,6 +99,7 @@ static int bin_index_up(size_t x) if (x <= 32) return x; x--; if (x < 512) return bin_tab[x/8-4] + 1; + if (x > 0x1c00) return 63; return bin_tab[x/128-4] + 17; }