summaryrefslogtreecommitdiff
path: root/src/stdio/open_wmemstream.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-19 00:42:28 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-19 00:42:28 -0400
commitcef0f289f666b6c963bfd11537a6d80916ff889e (patch)
tree9360c286947f79ef1f3dc8ac98def74e125e7ba1 /src/stdio/open_wmemstream.c
parent7c73cacd09a51a87484db5689864743e4984a84d (diff)
downloadmusl-cef0f289f666b6c963bfd11537a6d80916ff889e.tar.gz
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).
Diffstat (limited to 'src/stdio/open_wmemstream.c')
0 files changed, 0 insertions, 0 deletions