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)
Mon, May 4, 2:58 PM
Unknown Object (File)
Thu, Apr 30, 9:23 AM
Unknown Object (File)
Wed, Apr 29, 7:08 AM
Unknown Object (File)
Mon, Apr 27, 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