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>
This commit is contained in:
Luca Di Bartolomeo
2022-05-27 17:55:21 +02:00
committed by GitHub
parent 1441503c43
commit 066d65d846

View File

@ -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], '\'')) {