aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-05-16 09:17:59 +0200
committervanhauser-thc <vh@thc.org>2024-05-16 09:17:59 +0200
commit6ae95271becde1cd35a7792fd31ff84a548561ea (patch)
tree52f12265c6af12bb149947bbaa9560da9ff181c3 /src
parenta2e0163cc1c3503081c5c4c0d6312e69a7b5e95a (diff)
downloadafl++-6ae95271becde1cd35a7792fd31ff84a548561ea.tar.gz
nits
Diffstat (limited to 'src')
-rw-r--r--src/afl-showmap.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 4ce01444..7e875040 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -178,7 +178,8 @@ fsrv_run_result_t fuzz_run_target(afl_state_t *afl, afl_forkserver_t *fsrv,
void classify_counts(afl_forkserver_t *fsrv) {
u8 *mem = fsrv->trace_bits;
- const u8 *map = (binary_mode || collect_coverage) ? count_class_binary : count_class_human;
+ const u8 *map = (binary_mode || collect_coverage) ? count_class_binary
+ : count_class_human;
u32 i = map_size;
@@ -240,11 +241,7 @@ static void analyze_results(afl_forkserver_t *fsrv) {
u32 i;
for (i = 0; i < map_size; i++) {
- if (fsrv->trace_bits[i]) {
-
- coverage_map[i] |= fsrv->trace_bits[i];
-
- }
+ if (fsrv->trace_bits[i]) { coverage_map[i] |= fsrv->trace_bits[i]; }
}
@@ -1336,6 +1333,8 @@ int main(int argc, char **argv_orig, char **envp) {
}
+ if (collect_coverage) { binary_mode = false; } // ensure this
+
if (optind == argc || !out_file) { usage(argv[0]); }
if (in_dir && in_filelist) { FATAL("you can only specify either -i or -I"); }