+2016-12-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ [BZ# 19387]
+ * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
+ addition.
+ * string/test-memchr.c (do_test): Remove alignment limitation.
+ (test_main): Add test that trigger BZ# 19387.
+
2016-12-26 Nick Alcock <nick.alcock@oracle.com>
[BZ #7065]
size_t i;
CHAR *result;
- align &= 7;
if ((align + len) * sizeof (CHAR) >= page_size)
return;
do_test (i, 64, 256, SIZE_MAX, 0);
}
- for (i = 1; i < 16; ++i)
+ for (i = 1; i < 64; ++i)
{
- for (j = 1; j < 16; j++)
+ for (j = 1; j < 64; j++)
{
- do_test (0, 16 - j, 16, SIZE_MAX, 23);
- do_test (i, 16 - j, 16, SIZE_MAX, 23);
+ do_test (0, 64 - j, 64, SIZE_MAX, 23);
+ do_test (i, 64 - j, 64, SIZE_MAX, 23);
}
}