mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Revert "Fix strncmp page test to limit length to size of object"
This reverts commit e513f34605
.
This commit is contained in:
@ -1,8 +1,3 @@
|
|||||||
2011-04-05 Andreas Schwab <schwab@redhat.com>
|
|
||||||
|
|
||||||
* string/test-strncmp.c (do_page_test): Limit length to size of
|
|
||||||
object.
|
|
||||||
|
|
||||||
2011-04-03 Ulrich Drepper <drepper@gmail.com>
|
2011-04-03 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
|
* sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
|
||||||
|
@ -204,7 +204,6 @@ do_page_test (size_t offset1, size_t offset2, char *s2)
|
|||||||
{
|
{
|
||||||
char *s1;
|
char *s1;
|
||||||
int exp_result;
|
int exp_result;
|
||||||
size_t max_offset = offset1 > offset2 ? offset1 : offset2;
|
|
||||||
|
|
||||||
if (offset1 >= page_size || offset2 >= page_size)
|
if (offset1 >= page_size || offset2 >= page_size)
|
||||||
return;
|
return;
|
||||||
@ -216,8 +215,8 @@ do_page_test (size_t offset1, size_t offset2, char *s2)
|
|||||||
|
|
||||||
FOR_EACH_IMPL (impl, 0)
|
FOR_EACH_IMPL (impl, 0)
|
||||||
{
|
{
|
||||||
check_result (impl, s1, s2, page_size - max_offset, -exp_result);
|
check_result (impl, s1, s2, page_size, -exp_result);
|
||||||
check_result (impl, s2, s1, page_size - max_offset, exp_result);
|
check_result (impl, s2, s1, page_size, exp_result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user