Page MenuHomeFreeBSD

fix strchr, strrchr implementation on MIPS
ClosedPublic

Authored by br on Oct 13 2016, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 6:27 AM
Unknown Object (File)
Fri, Nov 21, 8:16 AM
Unknown Object (File)
Nov 13 2025, 12:03 PM
Unknown Object (File)
Nov 4 2025, 2:44 AM
Unknown Object (File)
Nov 3 2025, 12:37 PM
Unknown Object (File)
Nov 3 2025, 12:36 PM
Unknown Object (File)
Nov 3 2025, 12:36 PM
Unknown Object (File)
Nov 3 2025, 12:35 PM
Subscribers
None

Details

Summary

compare byte with byte, not byte with int

this is a fix for the following tests:

bin/sh/expansion/functional_test:ifs3
bin/sh/expansion/functional_test:plus_minus6
lib/libc/string/strchr_test:strchr_basic
lib/libc/string/strrchr_test:strrchr_basic

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

br retitled this revision from to fix strchr, strrchr implementation on MIPS.
br updated this object.
br edited the test plan for this revision. (Show Details)
br added reviewers: emaste, andrew.
emaste edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 13 2016, 12:06 PM
This revision was automatically updated to reflect the committed changes.