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)
Thu, May 21, 10:11 AM
Unknown Object (File)
Wed, May 20, 8:05 PM
Unknown Object (File)
Wed, May 20, 8:05 PM
Unknown Object (File)
Sun, May 17, 6:32 AM
Unknown Object (File)
Sat, May 2, 12:25 PM
Unknown Object (File)
Mon, Apr 27, 2:42 PM
Unknown Object (File)
Apr 20 2026, 2:59 AM
Unknown Object (File)
Apr 11 2026, 3:18 PM
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