mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
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:
committed by
GitHub
parent
1441503c43
commit
066d65d846
@ -59,7 +59,7 @@ void write_setup_file(afl_state_t *afl, u32 argc, char **argv) {
|
|||||||
|
|
||||||
if (i) fprintf(f, " ");
|
if (i) fprintf(f, " ");
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
if (memchr(argv[i], '\'', sizeof(argv[i]))) {
|
if (memchr(argv[i], '\'', strlen(argv[i]))) {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if (index(argv[i], '\'')) {
|
if (index(argv[i], '\'')) {
|
||||||
|
Reference in New Issue
Block a user