Page MenuHomeFreeBSD

Add test for a musl libc memmem bug
ClosedPublic

Authored by emaste on Oct 3 2016, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 26, 4:52 AM
Unknown Object (File)
Thu, Mar 26, 4:36 AM
Unknown Object (File)
Thu, Mar 26, 3:46 AM
Unknown Object (File)
Wed, Mar 25, 6:30 AM
Unknown Object (File)
Fri, Mar 20, 2:53 AM
Unknown Object (File)
Feb 22 2026, 1:25 PM
Unknown Object (File)
Feb 16 2026, 4:40 AM
Unknown Object (File)
Feb 1 2026, 11:33 PM
Subscribers
None

Details

Summary

With a short needle (aka little) musl's memmem could read past the end of the haystack (aka big). This was fixed in musl commit c718f9f.

Add this test in advance of migrating to musl's optimized strstr and memmem, in review D2601.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to Add test for a musl libc memmem bug.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: ngie.
ed edited edge metadata.
This revision is now accepted and ready to land.Oct 5 2016, 5:36 PM
This revision was automatically updated to reflect the committed changes.