Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Classes | |
struct | rz_malloc_chunk_64 |
struct | rz_malloc_chunk_32 |
struct | rz_malloc_state_32 |
struct | rz_malloc_state_64 |
struct | rz_tcache_perthread_struct_32 |
struct | rz_tcache_perthread_struct_64 |
struct | rz_tcache_perthread_struct_pre_230_32 |
struct | rz_tcache_perthread_struct_pre_230_64 |
struct | RTcache_64 |
struct | RTcache_32 |
struct | rz_malloc_state_tcache_32 |
struct | rz_malloc_state_tcache_64 |
struct | rz_malloc_state |
struct | rz_heap_info_32 |
struct | rz_heap_info_64 |
struct | rz_heap_chunk_list_item |
struct | rz_arena_list_item |
struct | rz_heap_chunk_simple |
struct | rz_heap_bin |
Macros | |
#define | PRINTF_A(color, fmt, ...) rz_cons_printf(color fmt Color_RESET, __VA_ARGS__) |
#define | PRINTF_YA(fmt, ...) PRINTF_A("%s", fmt, pal->offset, __VA_ARGS__) |
#define | PRINTF_GA(fmt, ...) PRINTF_A("%s", fmt, pal->args, __VA_ARGS__) |
#define | PRINTF_BA(fmt, ...) PRINTF_A("%s", fmt, pal->num, __VA_ARGS__) |
#define | PRINTF_RA(fmt, ...) PRINTF_A("%s", fmt, pal->invalid, __VA_ARGS__) |
#define | PRINT_A(color, msg) rz_cons_print(color msg Color_RESET) |
#define | PRINT_YA(msg) rz_cons_printf("%s" msg Color_RESET, pal->offset) |
#define | PRINT_GA(msg) rz_cons_printf("%s" msg Color_RESET, pal->args) |
#define | PRINT_BA(msg) rz_cons_printf("%s" msg Color_RESET, pal->num) |
#define | PRINT_RA(msg) rz_cons_printf("%s" msg Color_RESET, pal->invalid) |
#define | PREV_INUSE 0x1 |
#define | IS_MMAPPED 0x2 |
#define | NON_MAIN_ARENA 0x4 |
#define | NBINS 128 |
#define | NSMALLBINS 64 |
#define | NFASTBINS 10 |
#define | BINMAPSHIFT 5 |
#define | SZ core->dbg->bits |
#define | FASTBIN_IDX_TO_SIZE(i) ((SZ * 4) + (SZ * 2) * (i - 1)) |
#define | BITSPERMAP (1U << BINMAPSHIFT) |
#define | BINMAPSIZE (NBINS / BITSPERMAP) |
#define | NPAD -6 |
#define | TCACHE_MAX_BINS 64 |
#define | TCACHE_FILL_COUNT 7 |
#define | TCACHE_NEW_VERSION 230 |
#define | MMAP_ALIGN_32 0x14 |
#define | MMAP_ALIGN_64 0x18 |
#define | MMAP_OFFSET 0x8 |
#define | HDR_SZ_32 0x8 |
#define | HDR_SZ_64 0x10 |
#define | TC_HDR_SZ 0x10 |
#define | TC_SZ_32 0x0 |
#define | TC_SZ_64 0x10 |
#define | largebin_index_32(size) |
#define | largebin_index_32_big(size) |
#define | largebin_index_64(size) |
#define | largebin_index(size) (SZ == 8 ? largebin_index_64(size) : largebin_index_32(size)) |
#define | fastbin_index(size) (SZ == 8 ? (size >> 4) - 2 : (size >> 3) - 2) |
Enumerations | |
enum | tcache_type { NEW , OLD } |
enum | rz_heap_bin_type { RZ_HEAP_BIN_ANY , RZ_HEAP_BIN_TCACHE , RZ_HEAP_BIN_FAST , RZ_HEAP_BIN_UNSORTED , RZ_HEAP_BIN_SMALL , RZ_HEAP_BIN_LARGE } |
#define BINMAPSHIFT 5 |
Definition at line 31 of file rz_heap_glibc.h.
#define BINMAPSIZE (NBINS / BITSPERMAP) |
Definition at line 35 of file rz_heap_glibc.h.
#define BITSPERMAP (1U << BINMAPSHIFT) |
Definition at line 34 of file rz_heap_glibc.h.
Definition at line 33 of file rz_heap_glibc.h.
Definition at line 75 of file rz_heap_glibc.h.
#define HDR_SZ_32 0x8 |
Definition at line 45 of file rz_heap_glibc.h.
#define HDR_SZ_64 0x10 |
Definition at line 46 of file rz_heap_glibc.h.
#define IS_MMAPPED 0x2 |
Definition at line 25 of file rz_heap_glibc.h.
#define largebin_index | ( | size | ) | (SZ == 8 ? largebin_index_64(size) : largebin_index_32(size)) |
Definition at line 72 of file rz_heap_glibc.h.
#define largebin_index_32 | ( | size | ) |
#define largebin_index_32_big | ( | size | ) |
#define largebin_index_64 | ( | size | ) |
#define MMAP_ALIGN_32 0x14 |
Definition at line 41 of file rz_heap_glibc.h.
#define MMAP_ALIGN_64 0x18 |
Definition at line 42 of file rz_heap_glibc.h.
#define MMAP_OFFSET 0x8 |
Definition at line 43 of file rz_heap_glibc.h.
#define NBINS 128 |
Definition at line 28 of file rz_heap_glibc.h.
#define NFASTBINS 10 |
Definition at line 30 of file rz_heap_glibc.h.
#define NON_MAIN_ARENA 0x4 |
Definition at line 26 of file rz_heap_glibc.h.
#define NPAD -6 |
Definition at line 36 of file rz_heap_glibc.h.
#define NSMALLBINS 64 |
Definition at line 29 of file rz_heap_glibc.h.
#define PREV_INUSE 0x1 |
Definition at line 24 of file rz_heap_glibc.h.
#define PRINT_A | ( | color, | |
msg | |||
) | rz_cons_print(color msg Color_RESET) |
Definition at line 18 of file rz_heap_glibc.h.
#define PRINT_BA | ( | msg | ) | rz_cons_printf("%s" msg Color_RESET, pal->num) |
Definition at line 21 of file rz_heap_glibc.h.
#define PRINT_GA | ( | msg | ) | rz_cons_printf("%s" msg Color_RESET, pal->args) |
Definition at line 20 of file rz_heap_glibc.h.
#define PRINT_RA | ( | msg | ) | rz_cons_printf("%s" msg Color_RESET, pal->invalid) |
Definition at line 22 of file rz_heap_glibc.h.
#define PRINT_YA | ( | msg | ) | rz_cons_printf("%s" msg Color_RESET, pal->offset) |
Definition at line 19 of file rz_heap_glibc.h.
#define PRINTF_A | ( | color, | |
fmt, | |||
... | |||
) | rz_cons_printf(color fmt Color_RESET, __VA_ARGS__) |
Definition at line 12 of file rz_heap_glibc.h.
Definition at line 15 of file rz_heap_glibc.h.
Definition at line 14 of file rz_heap_glibc.h.
#define PRINTF_RA | ( | fmt, | |
... | |||
) | PRINTF_A("%s", fmt, pal->invalid, __VA_ARGS__) |
Definition at line 16 of file rz_heap_glibc.h.
Definition at line 13 of file rz_heap_glibc.h.
Definition at line 32 of file rz_heap_glibc.h.
#define TC_HDR_SZ 0x10 |
Definition at line 47 of file rz_heap_glibc.h.
#define TC_SZ_32 0x0 |
Definition at line 48 of file rz_heap_glibc.h.
#define TC_SZ_64 0x10 |
Definition at line 49 of file rz_heap_glibc.h.
#define TCACHE_FILL_COUNT 7 |
Definition at line 38 of file rz_heap_glibc.h.
#define TCACHE_MAX_BINS 64 |
Definition at line 37 of file rz_heap_glibc.h.
#define TCACHE_NEW_VERSION 230 |
Definition at line 39 of file rz_heap_glibc.h.
typedef struct rz_malloc_state MallocState |
typedef struct rz_arena_list_item RzArenaListItem |
typedef struct rz_malloc_state_32 RzHeap_MallocState_32 |
typedef struct rz_malloc_state_64 RzHeap_MallocState_64 |
typedef struct rz_malloc_state_tcache_32 RzHeap_MallocState_tcache_32 |
typedef struct rz_malloc_state_tcache_64 RzHeap_MallocState_tcache_64 |
typedef struct rz_heap_bin RzHeapBin |
typedef enum rz_heap_bin_type RzHeapBinType |
typedef struct rz_malloc_chunk_32 RzHeapChunk_32 |
typedef struct rz_malloc_chunk_64 RzHeapChunk_64 |
typedef struct rz_heap_chunk_list_item RzHeapChunkListItem |
typedef struct rz_heap_chunk_simple RzHeapChunkSimple |
typedef struct rz_heap_info_32 RzHeapInfo_32 |
typedef struct rz_heap_info_64 RzHeapInfo_64 |
typedef struct rz_tcache_perthread_struct_32 RzHeapTcache_32 |
typedef struct rz_tcache_perthread_struct_64 RzHeapTcache_64 |
typedef struct rz_tcache_perthread_struct_pre_230_32 RzHeapTcachePre230_32 |
typedef struct rz_tcache_perthread_struct_pre_230_64 RzHeapTcachePre230_64 |
enum rz_heap_bin_type |
Enumerator | |
---|---|
RZ_HEAP_BIN_ANY | |
RZ_HEAP_BIN_TCACHE | |
RZ_HEAP_BIN_FAST | |
RZ_HEAP_BIN_UNSORTED | |
RZ_HEAP_BIN_SMALL | |
RZ_HEAP_BIN_LARGE |
Definition at line 261 of file rz_heap_glibc.h.
enum tcache_type |
RZ_API RzList* rz_heap_arenas_list_32 | ( | RzCore * | core, |
ut32 | m_arena, | ||
MallocState * | main_arena | ||
) |
RZ_API RzList* rz_heap_arenas_list_64 | ( | RzCore * | core, |
ut64 | m_arena, | ||
MallocState * | main_arena | ||
) |
RZ_API RzHeapBin* rz_heap_bin_content_32 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
int | bin_num, | ||
ut32 | m_arena | ||
) |
RZ_API RzHeapBin* rz_heap_bin_content_64 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
int | bin_num, | ||
ut64 | m_arena | ||
) |
RZ_API RzHeapChunkSimple* rz_heap_chunk_wrapper_32 | ( | RzCore * | core, |
ut32 | addr | ||
) |
RZ_API RzHeapChunkSimple* rz_heap_chunk_wrapper_64 | ( | RzCore * | core, |
ut64 | addr | ||
) |
RZ_API RzList* rz_heap_chunks_list_32 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
ut32 | m_arena, | ||
ut32 | m_state, | ||
bool | top_chunk | ||
) |
RZ_API RzList* rz_heap_chunks_list_64 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
ut64 | m_arena, | ||
ut64 | m_state, | ||
bool | top_chunk | ||
) |
RZ_API RzHeapBin* rz_heap_fastbin_content_32 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
int | bin_num | ||
) |
RZ_API RzHeapBin* rz_heap_fastbin_content_64 | ( | RzCore * | core, |
MallocState * | main_arena, | ||
int | bin_num | ||
) |
RZ_API MallocState* rz_heap_get_arena_32 | ( | RzCore * | core, |
ut32 | m_state | ||
) |
RZ_API MallocState* rz_heap_get_arena_64 | ( | RzCore * | core, |
ut64 | m_state | ||
) |
RZ_API RzHeapChunk_32* rz_heap_get_chunk_at_addr_32 | ( | RzCore * | core, |
ut32 | addr | ||
) |
RZ_API RzHeapChunk_64* rz_heap_get_chunk_at_addr_64 | ( | RzCore * | core, |
ut64 | addr | ||
) |
RZ_API bool rz_heap_update_main_arena_32 | ( | RzCore * | core, |
ut32 | m_arena, | ||
MallocState * | main_arena | ||
) |
RZ_API bool rz_heap_update_main_arena_64 | ( | RzCore * | core, |
ut64 | m_arena, | ||
MallocState * | main_arena | ||
) |
RZ_API bool rz_heap_write_heap_chunk_32 | ( | RzCore * | core, |
RzHeapChunkSimple * | chunk_simple | ||
) |
RZ_API bool rz_heap_write_heap_chunk_64 | ( | RzCore * | core, |
RzHeapChunkSimple * | chunk_simple | ||
) |
RZ_LIB_VERSION_HEADER | ( | rz_heap_glibc | ) |