mirror of https://git.musl-libc.org/git/musl
Browse Source
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.master
committed by
Rich Felker
1 changed files with 1 additions and 0 deletions
Loading…
Reference in new issue