diff options
author | vanhauser-thc <vh@thc.org> | 2024-05-21 11:04:25 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-05-21 11:04:25 +0200 |
commit | e1521fa8ebdd2c95ed4f8db6f0835eb3738b3d4c (patch) | |
tree | ec136eb566721e2238ed29e28e4d185752a1471a | |
parent | 4e3cd8ac3f26144f934d115a56bd4830c8155190 (diff) | |
download | afl++-e1521fa8ebdd2c95ed4f8db6f0835eb3738b3d4c.tar.gz |
fix symcc custom mutator
-rw-r--r-- | custom_mutators/symcc/symcc.c | 5 | ||||
-rw-r--r-- | docs/Changelog.md | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/custom_mutators/symcc/symcc.c b/custom_mutators/symcc/symcc.c index 86f23343..154a82bb 100644 --- a/custom_mutators/symcc/symcc.c +++ b/custom_mutators/symcc/symcc.c @@ -287,7 +287,7 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size, struct stat st; u8 * fn = alloc_printf("%s/%s", data->out_dir, nl[i]->d_name); - if (done == 0) { + if (!done) { if (stat(fn, &st) == 0 && S_ISREG(st.st_mode) && st.st_size) { @@ -299,14 +299,13 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size, *out_buf = data->mutator_buf; close(fd); + unlink(fn); done = 1; } } - unlink(fn); - } ck_free(fn); diff --git a/docs/Changelog.md b/docs/Changelog.md index 4c77b2b8..d6478ca0 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -64,7 +64,9 @@ - afl-whatsup: - now also displays current average speed - small bugfixes - - Fixes for aflpp custom mutator and standalone tool + - custom mutators: + - fixes for aflpp custom mutator and standalone tool + - important fix to the symcc custom mutator - Minor edits to afl-persistent-config - Prevent temporary files being left behind on aborted afl-whatsup - More CPU benchmarks added to benchmark/ |