mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Fix wide-char testsuite SIGBUS on platforms such as Sparc.
* string/test-strncmp.c (do_test_limit): Make sure the test data stream is aligned as required for the type "CHAR". (do_test): Likewise.
This commit is contained in:
parent
30f926d3b3
commit
5a0b6138d8
@ -1,3 +1,9 @@
|
||||
2016-08-02 David S. Miller <davem@davemloft.net>
|
||||
|
||||
* string/test-strncmp.c (do_test_limit): Make sure the test data
|
||||
stream is aligned as required for the type "CHAR".
|
||||
(do_test): Likewise.
|
||||
|
||||
2016-08-03 Aurelien Jarno <aurelien@aurel32.net>
|
||||
|
||||
* sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
|
||||
|
@ -156,6 +156,9 @@ do_test_limit (size_t align1, size_t align2, size_t len, size_t n, int max_char,
|
||||
size_t i, align_n;
|
||||
CHAR *s1, *s2;
|
||||
|
||||
align1 &= ~(CHARBYTES - 1);
|
||||
align2 &= ~(CHARBYTES - 1);
|
||||
|
||||
if (n == 0)
|
||||
{
|
||||
s1 = (CHAR *) (buf1 + page_size);
|
||||
@ -204,6 +207,9 @@ do_test (size_t align1, size_t align2, size_t len, size_t n, int max_char,
|
||||
size_t i;
|
||||
CHAR *s1, *s2;
|
||||
|
||||
align1 &= ~(CHARBYTES - 1);
|
||||
align2 &= ~(CHARBYTES - 1);
|
||||
|
||||
if (n == 0)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user