Page MenuHomeFreeBSD

lib/libc/tests/string: extend strncmp unit test with bounds check
AbandonedPublic

Authored by getz on Jul 10 2024, 10:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 3, 3:12 PM
Unknown Object (File)
Aug 28 2025, 9:00 AM
Unknown Object (File)
Aug 2 2025, 5:28 PM
Unknown Object (File)
Jul 30 2025, 9:46 AM
Unknown Object (File)
Jun 23 2025, 2:48 AM
Unknown Object (File)
Jun 21 2025, 1:46 AM
Unknown Object (File)
Jun 19 2025, 1:21 PM
Unknown Object (File)
Jun 19 2025, 4:58 AM
Subscribers

Details

Reviewers
fuz
emaste
Summary

The strlcpy bounds test also functions as a strncmp bounds test.
I copied it over to the strncmp test.

Diff Detail

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

Event Timeline

getz requested review of this revision.Jul 10 2024, 10:55 AM
getz added reviewers: fuz, emaste.

I'll write a proper new test instead testing more cases for the bounds