diff options
author | vanhauser-thc <vh@thc.org> | 2022-08-25 08:47:30 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-08-25 08:47:30 +0200 |
commit | 88ff8aa81e41717abb3d72f8714fdc38591b81a7 (patch) | |
tree | bc1cdcb68fcb42910c50686e059a61d09f2bf6cc | |
parent | 804e845a946f14519f79248181777002529fc260 (diff) | |
download | afl++-88ff8aa81e41717abb3d72f8714fdc38591b81a7.tar.gz |
fix gcc_mode cmplog
-rw-r--r-- | docs/Changelog.md | 1 | ||||
-rw-r--r-- | src/afl-cc.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md index e4c59978..842b727b 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -18,6 +18,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>. to variables queue items instead of 12. - afl-cc: - better handling of -fsanitize=..,...,.. lists + - fix gcc_mode cmplog - obtain the map size of a target with setting AFL_DUMP_MAP_SIZE=1 note that this will exit the target before main() - qemu_mode: diff --git a/src/afl-cc.c b/src/afl-cc.c index ffd15476..c0449e64 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -498,13 +498,10 @@ static void edit_params(u32 argc, char **argv, char **envp) { alloc_printf("-fplugin=%s/afl-gcc-cmptrs-pass.so", obj_path); cc_params[cc_par_cnt++] = fplugin_arg; - } else { - - fplugin_arg = alloc_printf("-fplugin=%s/afl-gcc-pass.so", obj_path); - cc_params[cc_par_cnt++] = fplugin_arg; - } + fplugin_arg = alloc_printf("-fplugin=%s/afl-gcc-pass.so", obj_path); + cc_params[cc_par_cnt++] = fplugin_arg; cc_params[cc_par_cnt++] = "-fno-if-conversion"; cc_params[cc_par_cnt++] = "-fno-if-conversion2"; |