Fix max_global_fast again

This commit is contained in:
soez 2017-05-15 12:05:44 +02:00 committed by radare
parent d74ff6bac1
commit edba3d11f0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)