|author||Timo Teräs <email@example.com>||2014-04-09 21:06:17 -0400|
|committer||Rich Felker <firstname.lastname@example.org>||2014-04-09 21:06:17 -0400|
fix search past the end of haystack in memmem
to optimize the search, memchr is used to find the first occurrence of the first character of the needle in the haystack before switching to a search for the full needle. however, the number of characters skipped by this first step were not subtracted from the haystack length, causing memmem to search past the end of the haystack.
Diffstat (limited to 'src/math')
0 files changed, 0 insertions, 0 deletions