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] |
> 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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |