| Commit message (Expand) | Author | Age | Files | Lines |
| * | fix incorrect comparison loop condition in memmem•••the logic for this loop was copied from null-terminated-string logic
in strstr without properly adapting it to work with explicit lengths.
presumably this error could result in false negatives (wrongly
comparing past the end of the needle/haystack), false positives
(stopping comparison early when the needle contains null bytes), and
crashes (from runaway reads past the end of mapped memory).
| Rich Felker | 2014-06-19 | 1 | -2/+2 |
| * | fix false negatives with periodic needles in strstr, wcsstr, and memmem•••in cases where the memorized match range from the right factor
exceeded the length of the left factor, it was wrongly treated as a
mismatch rather than a match.
issue reported by Yves Bastide.
| Rich Felker | 2014-04-18 | 1 | -1/+1 |
| * | 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.
| Timo Teräs | 2014-04-09 | 1 | -0/+1 |
| * | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 2013-12-12 | 1 | -1/+0 |
| * | add memmem function (gnu extension)•••based on strstr. passes gnulib tests and a few quick checks of my own.
| Rich Felker | 2012-10-15 | 1 | -0/+148 |