fix -F with slash option
MODIFY
docs/Changelog.md
docs/Changelog.md
@@ -10,6 +10,9 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
### Version ++3.14a (release)
- Fix for llvm 13
+ - afl-fuzz:
+ - fix -F when a '/' was part of the parameter
+ - ensure afl-compiler-rt is built for gcc_module
### Version ++3.13c (release)

MODIFY
src/afl-fuzz-init.c
src/afl-fuzz-init.c
@@ -480,13 +480,22 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
for (iter = 0; iter < afl->foreign_sync_cnt; iter++) {
- if (afl->foreign_syncs[iter].dir != NULL &&
- afl->foreign_syncs[iter].dir[0] != 0) {
+ if (afl->foreign_syncs[iter].dir && afl->foreign_syncs[iter].dir[0]) {
if (first) ACTF("Scanning '%s'...", afl->foreign_syncs[iter].dir);
time_t mtime_max = 0;
+
u8 *name = strrchr(afl->foreign_syncs[iter].dir, '/');
- if (!name) { name = afl->foreign_syncs[iter].dir; }
+ if (!name) {
+
+ name = afl->foreign_syncs[iter].dir;
+
+ } else {
+
+ ++name;
+
+ }
+
if (!strcmp(name, "queue") || !strcmp(name, "out") ||
!strcmp(name, "default")) {

fix -F with slash option