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, Sep 11, 3:50 PM
Unknown Object (File)
Tue, Sep 8, 10:00 PM
Unknown Object (File)
Tue, Sep 8, 9:41 PM
Unknown Object (File)
Tue, Sep 8, 8:37 PM
Unknown Object (File)
Mon, Sep 7, 10:04 PM
Unknown Object (File)
Sun, Sep 6, 12:50 PM
Unknown Object (File)
Sat, Sep 5, 11:10 PM
Unknown Object (File)
Sat, Sep 5, 5:11 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