diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-18 17:38:35 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-20 17:58:24 -0400 |
commit | e65bb40b30d4422f2d6ac2e1ae542e7879ddc13f (patch) | |
tree | 7ba618d94b09c38638f8ff92688c663a45011bf2 /src/string/wcstok.c | |
parent | 84613196aad69fad6d1a2c1814fe0bfea67efbd7 (diff) | |
download | musl-e65bb40b30d4422f2d6ac2e1ae542e7879ddc13f.tar.gz musl-e65bb40b30d4422f2d6ac2e1ae542e7879ddc13f.tar.xz musl-e65bb40b30d4422f2d6ac2e1ae542e7879ddc13f.zip |
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. (cherry picked from commit 476cd1d96560aaf7f210319597556e7fbcd60469)
Diffstat (limited to 'src/string/wcstok.c')
0 files changed, 0 insertions, 0 deletions