diff options
author | Luca Di Bartolomeo <lucadb96@gmail.com> | 2022-05-27 17:55:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 17:55:21 +0200 |
commit | 066d65d8469ca504ab86771bd8e5e608efec9517 (patch) | |
tree | 004018b6b463fbc01a8a2af682eb9227ae35ceba | |
parent | 1441503c4328735ce78367b24f71a6f999760113 (diff) | |
download | afl++-066d65d8469ca504ab86771bd8e5e608efec9517.tar.gz |
Fix wrong memchr size in android (#1429)
Need to fix this otherwise ASAN will always complain about heap buffer overflows and refuse to run. Co-authored-by: van Hauser <vh@thc.org>
-rw-r--r-- | src/afl-fuzz-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 5b237748..3e034b83 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -59,7 +59,7 @@ void write_setup_file(afl_state_t *afl, u32 argc, char **argv) { if (i) fprintf(f, " "); #ifdef __ANDROID__ - if (memchr(argv[i], '\'', sizeof(argv[i]))) { + if (memchr(argv[i], '\'', strlen(argv[i]))) { #else if (index(argv[i], '\'')) { |