Page MenuHomeFreeBSD

lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
AbandonedPublic

Authored by fuz on Aug 30 2023, 11:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 7:43 PM
Unknown Object (File)
May 4 2026, 2:58 PM
Unknown Object (File)
Apr 30 2026, 9:23 AM
Unknown Object (File)
Apr 29 2026, 7:08 AM
Unknown Object (File)
Apr 27 2026, 4:14 PM
Unknown Object (File)
Apr 5 2026, 7:43 AM
Unknown Object (File)
Mar 22 2026, 7:37 AM
Unknown Object (File)
Mar 22 2026, 1:27 AM
Subscribers

Details

Reviewers
None
Summary

The four functions more or less perform the same operation.
Reuse the same unit test with slight changes so we can cover
them all. Constant-time operation is not verified for the
timingsafe_* functions.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53359
Build 50250: arc lint + arc unit