This is the mail archive of the libc-hacker@sourceware.cygnus.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] |
Andreas Jaeger <aj@suse.de> writes: > playing around with the other tests I noticed that mbstowcs produces a > segmentation fault with all 0 arguments: > > Program received signal SIGSEGV, Segmentation fault. > 0x8054082 in __mbsrtowcs (dst=0x0, src=0xbffff658, len=0, ps=0xbffff644) > at mbsrtowcs.c:70 > 70 const unsigned char *srcend = inbuf + strlen (inbuf) + 1; > (gdb) bt The standard does not say anything about *src == NULL being a valid input. Therefore is the implementation correct.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |