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)
Mon, Mar 9, 1:27 AM
Unknown Object (File)
Mon, Mar 9, 1:27 AM
Unknown Object (File)
Thu, Mar 5, 6:36 PM
Unknown Object (File)
Feb 8 2026, 4:40 AM
Unknown Object (File)
Jan 31 2026, 4:03 AM
Unknown Object (File)
Jan 13 2026, 12:21 PM
Unknown Object (File)
Dec 11 2025, 8:53 PM
Unknown Object (File)
Nov 16 2025, 1:12 PM
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