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)
Sun, Jan 4, 4:20 PM
Unknown Object (File)
Fri, Dec 26, 10:01 PM
Unknown Object (File)
Dec 12 2025, 2:43 PM
Unknown Object (File)
Nov 26 2025, 10:44 AM
Unknown Object (File)
Nov 23 2025, 2:38 PM
Unknown Object (File)
Nov 23 2025, 7:16 AM
Unknown Object (File)
Nov 12 2025, 12:01 AM
Unknown Object (File)
Oct 28 2025, 10:20 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