mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Fix WP
This commit is contained in:
parent
5b330a2d90
commit
df33a8fb1c
@ -2,7 +2,8 @@
|
|||||||
Copyright (C) 1999, 2002, 2003, 2005, 2011 Free Software Foundation, Inc.
|
Copyright (C) 1999, 2002, 2003, 2005, 2011 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
|
||||||
Added wcsrrchr support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>, 2011.
|
Added wcsrrchr support by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>,
|
||||||
|
2011.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
modify it under the terms of the GNU Lesser General Public
|
||||||
@ -147,8 +148,9 @@ do_random_tests (void)
|
|||||||
align = random () & (63 / sizeof(CHAR));
|
align = random () & (63 / sizeof(CHAR));
|
||||||
/* For wcsrchr: align here means align not in bytes, but in wchar_ts,
|
/* For wcsrchr: align here means align not in bytes, but in wchar_ts,
|
||||||
in bytes it will equal to align * (sizeof (wchar_t)).
|
in bytes it will equal to align * (sizeof (wchar_t)).
|
||||||
For strrchr we need to check all alignments from 0 to 63 since some assembly implementations
|
For strrchr we need to check all alignments from 0 to 63 since
|
||||||
have separate prolog for alignments more 48. */
|
some assembly implementations have separate prolog for alignments
|
||||||
|
more 48. */
|
||||||
pos = random () & 511;
|
pos = random () & 511;
|
||||||
if (pos + align >= 511)
|
if (pos + align >= 511)
|
||||||
pos = 510 - align - (random () & 7);
|
pos = 510 - align - (random () & 7);
|
||||||
|
Loading…
Reference in New Issue
Block a user