From edba3d11f075c135441b24bb8739aeecb8dfaecf Mon Sep 17 00:00:00 2001 From: soez Date: Mon, 15 May 2017 12:05:44 +0200 Subject: [PATCH] Fix max_global_fast again --- libr/core/linux_heap_glibc.c | 2 +- libr/include/r_heap_glibc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libr/core/linux_heap_glibc.c b/libr/core/linux_heap_glibc.c index 9e24b92618b01..70d7b7da359e0 100644 --- a/libr/core/linux_heap_glibc.c +++ b/libr/core/linux_heap_glibc.c @@ -83,7 +83,7 @@ static void GH(print_main_arena)(RCore *core, GHT m_arena, GH(RHeap_MallocState) PRINTF_BA ("0x%08x\n", (ut32)main_arena->flags); PRINT_GA (" fastbinsY = {\n"); - for (i = 0, j = 1, k = SZ * 4; i < NFASTBINS; i++, j++, k += SZ * 2) { + for (i = 0, j = 1, k = SZ * 4; i < NFASTBINS - 2; i++, j++, k += SZ * 2) { PRINTF_YA (" Fastbin %02d: ", j); PRINT_GA (" chunksize:"); PRINTF_BA (" == %04d ", k); diff --git a/libr/include/r_heap_glibc.h b/libr/include/r_heap_glibc.h index e94749e57c855..08fda17e53b9a 100644 --- a/libr/include/r_heap_glibc.h +++ b/libr/include/r_heap_glibc.h @@ -21,7 +21,7 @@ R_LIB_VERSION_HEADER(r_heap_glibc); #define NBINS 128 #define NSMALLBINS 64 -#define NFASTBINS 8 +#define NFASTBINS 10 #define BINMAPSHIFT 5 #define SZ core->dbg->bits #define BITSPERMAP (1U << BINMAPSHIFT)