string: Improve coverage in test-strcmp.c and test-strncmp.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 10 Jan 2022 21:35:37 +0000 (15:35 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 3 Feb 2022 22:41:36 +0000 (16:41 -0600)
commit1a908d9074102bf3dbe2451ad12f2fbc1abbd7dd
tree1e7c2e7b884cdcd6544a23818c6259a3fa3dc6f0
parent43388b3ac09c757af1d94c9071e52b79b4bd8bb4
string: Improve coverage in test-strcmp.c and test-strncmp.c

Add additional test cases for small / medium sizes.

Add tests in test-strncmp.c where `n` is near ULONG_MAX or LONG_MIN to
test for overflow bugs in length handling.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
string/test-strcmp.c
string/test-strncmp.c