mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 01:58:17 +00:00
Create string.c
Off by one error resulted in memmem calling memcmp where h + needle_len is one past the end.
This commit is contained in:
@ -271,7 +271,7 @@ void *__libqasan_memmem(const void *haystack, size_t haystack_len,
|
||||
|
||||
}
|
||||
|
||||
} while (h++ <= end);
|
||||
} while (++h <= end);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user