Change contains to return true for empty string needles
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The behavior of memmem for an empty needle is inconsistent between implementations of libc. Our tests imply that we want an empty string needle to be true, so check for an empty needle before calling memmem.
authored by William Langford · committed by Nico Williams · parent cc724f1 · Browse files · 1 file+7 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+7 added−2 removed
- other:+7 added−2 removed