diff options
author | vanhauser-thc <vh@thc.org> | 2024-06-09 15:44:10 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-06-09 15:44:10 +0200 |
commit | 5014b86c3c3974000f41cde1dc39a1f5b9cf9605 (patch) | |
tree | d08b0d02213104e6885ebb42902e2ba644b310a0 /frida_mode/src/ranges.c | |
parent | 44b5e1f4888cf6ce17a516f4d21e66f11c429bc1 (diff) | |
download | afl++-5014b86c3c3974000f41cde1dc39a1f5b9cf9605.tar.gz |
fix AFL_FRIDA_DEBUG_MAPS
Diffstat (limited to 'frida_mode/src/ranges.c')
-rw-r--r-- | frida_mode/src/ranges.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/frida_mode/src/ranges.c b/frida_mode/src/ranges.c index 269ba59b..714fd9be 100644 --- a/frida_mode/src/ranges.c +++ b/frida_mode/src/ranges.c @@ -194,24 +194,23 @@ static gboolean print_ranges_callback(const GumRangeDetails *details, if (details->file == NULL) { - FVERBOSE("\t0x%016" G_GINT64_MODIFIER "x-0x%016" G_GINT64_MODIFIER - "X %c%c%c", - details->range->base_address, - details->range->base_address + details->range->size, - details->protection & GUM_PAGE_READ ? 'R' : '-', - details->protection & GUM_PAGE_WRITE ? 'W' : '-', - details->protection & GUM_PAGE_EXECUTE ? 'X' : '-'); + OKF("\t0x%016" G_GINT64_MODIFIER "x-0x%016" G_GINT64_MODIFIER "X %c%c%c", + details->range->base_address, + details->range->base_address + details->range->size, + details->protection & GUM_PAGE_READ ? 'R' : '-', + details->protection & GUM_PAGE_WRITE ? 'W' : '-', + details->protection & GUM_PAGE_EXECUTE ? 'X' : '-'); } else { - FVERBOSE("\t0x%016" G_GINT64_MODIFIER "x-0x%016" G_GINT64_MODIFIER - "X %c%c%c %s(0x%016" G_GINT64_MODIFIER "x)", - details->range->base_address, - details->range->base_address + details->range->size, - details->protection & GUM_PAGE_READ ? 'R' : '-', - details->protection & GUM_PAGE_WRITE ? 'W' : '-', - details->protection & GUM_PAGE_EXECUTE ? 'X' : '-', - details->file->path, details->file->offset); + OKF("\t0x%016" G_GINT64_MODIFIER "x-0x%016" G_GINT64_MODIFIER + "X %c%c%c %s(0x%016" G_GINT64_MODIFIER "x)", + details->range->base_address, + details->range->base_address + details->range->size, + details->protection & GUM_PAGE_READ ? 'R' : '-', + details->protection & GUM_PAGE_WRITE ? 'W' : '-', + details->protection & GUM_PAGE_EXECUTE ? 'X' : '-', details->file->path, + details->file->offset); } @@ -581,7 +580,7 @@ static GArray *merge_ranges(GArray *a) { void ranges_print_debug_maps(void) { - FVERBOSE("Maps"); + OKF("Maps"); gum_process_enumerate_ranges(GUM_PAGE_NO_ACCESS, print_ranges_callback, NULL); } |