Skip to content

Commit

Permalink
Fix max_global_fast again
Browse files Browse the repository at this point in the history
  • Loading branch information
soez authored and radare committed May 15, 2017
1 parent d74ff6b commit edba3d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libr/core/linux_heap_glibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion libr/include/r_heap_glibc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit edba3d1

Please sign in to comment.