mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
String: Improve test coverage for memchr
This test improves memchr coverage near page boundary. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
@ -247,8 +247,11 @@ test_main (void)
|
|||||||
/* BZ#21182 - wrong overflow calculation for i686 implementation
|
/* BZ#21182 - wrong overflow calculation for i686 implementation
|
||||||
with address near end of the page. */
|
with address near end of the page. */
|
||||||
for (i = 2; i < 16; ++i)
|
for (i = 2; i < 16; ++i)
|
||||||
/* page_size is in fact getpagesize() * 2. */
|
{
|
||||||
do_test (page_size / 2 - i, i, i, 1, 0x9B);
|
/* page_size is in fact getpagesize() * 2. */
|
||||||
|
do_test (page_size / 2 - i, i, i, 1, 0x9B);
|
||||||
|
do_test (page_size / 2 - i, i - 1, i - 1, 1, 0x9B);
|
||||||
|
}
|
||||||
|
|
||||||
do_random_tests ();
|
do_random_tests ();
|
||||||
do_overflow_tests ();
|
do_overflow_tests ();
|
||||||
|
Reference in New Issue
Block a user