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, Jun 26, 8:41 PM
Unknown Object (File)
Thu, Jun 25, 12:47 PM
Unknown Object (File)
May 21 2026, 10:11 AM
Unknown Object (File)
May 20 2026, 8:05 PM
Unknown Object (File)
May 20 2026, 8:05 PM
Unknown Object (File)
May 17 2026, 6:32 AM
Unknown Object (File)
May 2 2026, 12:25 PM
Unknown Object (File)
Apr 27 2026, 2:42 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