mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
String: Improve overflow test coverage for strnlen
This patch adds more overflow test coverage for strnlen and wcsnlen. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
3d9926663c
commit
7597b251d4
@ -96,6 +96,8 @@ do_overflow_tests (void)
|
||||
|
||||
for (i = 0; i < 750; ++i)
|
||||
{
|
||||
do_test (1, i, SIZE_MAX, BIG_CHAR);
|
||||
|
||||
do_test (0, i, SIZE_MAX - i, BIG_CHAR);
|
||||
do_test (0, i, i - buf_addr, BIG_CHAR);
|
||||
do_test (0, i, -buf_addr - i, BIG_CHAR);
|
||||
|
Loading…
Reference in New Issue
Block a user