diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-04-09 21:06:17 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-16 02:46:05 -0400 |
commit | 043865cadf1b26ee3a9ccdac3b0d0ca9d380cdad (patch) | |
tree | f810d1e6fa1d2f2eb88eceec1501e0a3ded58ecc /src/math/log1pf.c | |
parent | a65824a74fc49b059ecd684a9edba31070a1794f (diff) | |
download | musl-043865cadf1b26ee3a9ccdac3b0d0ca9d380cdad.tar.gz musl-043865cadf1b26ee3a9ccdac3b0d0ca9d380cdad.tar.xz musl-043865cadf1b26ee3a9ccdac3b0d0ca9d380cdad.zip |
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. (cherry picked from commit 6fbdeff0e51f6afc38fbb1476a4db81322779da4)
Diffstat (limited to 'src/math/log1pf.c')
0 files changed, 0 insertions, 0 deletions