diff options
| author | van Hauser <vh@thc.org> | 2021-10-12 10:19:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-12 10:19:45 +0200 |
| commit | 28df6d5a576b4ddc241223f2908d0f42ba7ef0bd (patch) | |
| tree | 23ed0d4f1426463276332faa4cc2dfa0cb8fccaa /frida_mode/src/ranges.c | |
| parent | 00aa689f40a3c8276af257cf0b54dc655cb0423e (diff) | |
| parent | d22b28d17b8cffabbb59c9e82373338a6343c648 (diff) | |
| download | afl++-28df6d5a576b4ddc241223f2908d0f42ba7ef0bd.tar.gz | |
Merge pull request #1114 from WorksButNotTested/minasm
Minimize inline assembly
Diffstat (limited to 'frida_mode/src/ranges.c')
| -rw-r--r-- | frida_mode/src/ranges.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/frida_mode/src/ranges.c b/frida_mode/src/ranges.c index 5b6eb462..1b666fce 100644 --- a/frida_mode/src/ranges.c +++ b/frida_mode/src/ranges.c @@ -549,18 +549,19 @@ static GArray *merge_ranges(GArray *a) { } +void ranges_print_debug_maps(void) { + + gum_process_enumerate_ranges(GUM_PAGE_NO_ACCESS, print_ranges_callback, NULL); + +} + void ranges_config(void) { if (getenv("AFL_FRIDA_DEBUG_MAPS") != NULL) { ranges_debug_maps = TRUE; } if (getenv("AFL_INST_LIBS") != NULL) { ranges_inst_libs = TRUE; } if (getenv("AFL_FRIDA_INST_JIT") != NULL) { ranges_inst_jit = TRUE; } - if (ranges_debug_maps) { - - gum_process_enumerate_ranges(GUM_PAGE_NO_ACCESS, print_ranges_callback, - NULL); - - } + if (ranges_debug_maps) { ranges_print_debug_maps(); } include_ranges = collect_ranges("AFL_FRIDA_INST_RANGES"); exclude_ranges = collect_ranges("AFL_FRIDA_EXCLUDE_RANGES"); |
