String: Add three more overflow tests cases to test-strnlen.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 23 Jun 2021 23:17:29 +0000 (19:17 -0400)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 24 Jun 2021 23:14:15 +0000 (19:14 -0400)
commitbd3a2b3ed18fdeff0b370110c35850b51d025e8c
treeb51b2e0cae9838cbf186f4f14072257c9788d070
parent9f70985569888d68612012fcb538c47c154c1e8b
String: Add three more overflow tests cases to test-strnlen.c

No bug. Just seem like relevant cases given that strnlen will
use s + maxlen in many implementations.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
string/test-strnlen.c