This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tue, Mar 25, 2003 at 02:05:16AM -0800, Roland McGrath wrote:
> > From the POSIX description:
> >
> > The memccpy() function shall copy bytes from memory area s2 into s1,
> > stopping after the first occurrence of byte c (converted to an
> > unsigned char) is copied, or after n bytes are copied, whichever comes
> > first.
> >
> > I'd conclude that memccpy must not touch the memory after the character.
>
> I concur. Note that we have string/stratcliff.c to test exactly this kind
> of issue for some other string functions. It seems appropriate to test
> memccpy there too.
And string/test-{mem,st}*.c test for the behaviour near the mapping end too,
just test-memccpy.c is not written (yet).
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |