Fix dev branch for android (#710)

* android: replace rindex with strrchr

* android: support 64bit only due to 128bit integer not supported by 32bit system

Co-authored-by: joeyjiaojg@qq.com <joeyjiaojg@163.com>
This commit is contained in:
Joey Jiaojg
2021-01-28 12:51:45 +08:00
committed by GitHub
parent 2044c7e2b5
commit 47f62eb0ca
3 changed files with 5 additions and 3 deletions

View File

@ -469,7 +469,7 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
if (first) ACTF("Scanning '%s'...", afl->foreign_syncs[iter].dir);
time_t ctime_max = 0;
u8 * name = rindex(afl->foreign_syncs[iter].dir, '/');
u8 * name = strrchr(afl->foreign_syncs[iter].dir, '/');
if (!name) { name = afl->foreign_syncs[iter].dir; }
if (!strcmp(name, "queue") || !strcmp(name, "out") ||
!strcmp(name, "default")) {