From 3ddbda0a9a9c2b75cf9e2a2f0fffbef920692577 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Thu, 24 Nov 2022 09:42:07 +0800 Subject: [PATCH] rz_heap_glibc.h: Add `have_fastchunks` member to `RzHeap_MallocState_` structs (#3200) * Add `have_fastchunks` member to `RzHeap_MallocState_` structs * Show only last few lines of `dmh` output in "dmh allocated" test --- librz/include/rz_heap_glibc.h | 2 ++ test/db/archos/linux-x64/dbg_dmh | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/librz/include/rz_heap_glibc.h b/librz/include/rz_heap_glibc.h index 7a4fdd3619..93be59a2e2 100644 --- a/librz/include/rz_heap_glibc.h +++ b/librz/include/rz_heap_glibc.h @@ -117,6 +117,7 @@ typedef RzHeapChunk32 *mchunkptr32; typedef struct rz_malloc_state_32 { int mutex; /* serialized access */ int flags; /* flags */ + int have_fastchunks; /* new free blocks in fastbin chunks? */ ut32 fastbinsY[NFASTBINS]; /* array of fastchunks */ ut32 top; /* top chunk's base addr */ ut32 last_remainder; /* remainder top chunk's addr */ @@ -132,6 +133,7 @@ typedef struct rz_malloc_state_32 { typedef struct rz_malloc_state_64 { int mutex; /* serialized access */ int flags; /* flags */ + int have_fastchunks; /* new free blocks in fastbin chunks? */ ut64 fastbinsY[NFASTBINS]; /* array of fastchunks */ ut64 top; /* top chunk's base addr */ ut64 last_remainder; /* remainder top chunk's addr */ diff --git a/test/db/archos/linux-x64/dbg_dmh b/test/db/archos/linux-x64/dbg_dmh index 0296d9b53c..95ef8b0071 100644 --- a/test/db/archos/linux-x64/dbg_dmh +++ b/test/db/archos/linux-x64/dbg_dmh @@ -19,18 +19,16 @@ FILE=bins/elf/simple_malloc_x86_64 ARGS=-d CMDS=<