mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-16 07:21:57 +03:00
Update.
2000-12-08 Ulrich Drepper <drepper@redhat.com> * string/stratcliff.c: Add test for rawmemchr.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2000-12-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* string/stratcliff.c: Add test for rawmemchr.
|
||||||
|
|
||||||
2000-12-08 Jakub Jelinek <jakub@redhat.com>
|
2000-12-08 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elf/dl-open.c (_dl_open): If objname points right after errstring,
|
* elf/dl-open.c (_dl_open): If objname points right after errstring,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test for string function add boundaries of usable memory.
|
/* Test for string function add boundaries of usable memory.
|
||||||
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@ -152,6 +152,27 @@ main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* rawmemchr test */
|
||||||
|
for (outer = size - 1; outer >= MAX (0, size - 128); --outer)
|
||||||
|
{
|
||||||
|
for (middle = MAX (outer, size - 64); middle < size; ++middle)
|
||||||
|
{
|
||||||
|
char *cp;
|
||||||
|
adr[middle] = 'V';
|
||||||
|
|
||||||
|
cp = rawmemchr (&adr[outer], 'V');
|
||||||
|
|
||||||
|
if (cp - &adr[outer] != middle - outer)
|
||||||
|
{
|
||||||
|
printf ("rawmemchr flunked for outer = %d, middle = %d\n",
|
||||||
|
outer, middle, inner);
|
||||||
|
result = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
adr[middle] = 'T';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* strcpy test */
|
/* strcpy test */
|
||||||
for (outer = size - 1; outer >= MAX (0, size - 128); --outer)
|
for (outer = size - 1; outer >= MAX (0, size - 128); --outer)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user