This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Bug in _VFPRINTF_R
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Samuel Vinson on 9/15/2007 1:35 AM:
> I never see that with different libc implementation, I used
> (linux/gcc/libc/glibc, windows/msvcrt, solaris/libc...)
It may not match msvcrt or solaris libc, but it does match glibc - I'm not
sure how you tested it.
> Perhaps POSIX and C99 allow your choice, but this is not portable in
> different platforms.
This is not portable, period. Calling printf("%s", (char*)NULL) invokes
undefined behavior, and is a bug in your program, not in newlib.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG68gr84KuGfSFAYARAr2PAKCR56DlvOvhKZXMeDn+ecmYO7fXEQCeMEUV
kGk4bBxoFTk2hpRD3TiakLM=
=LIb4
-----END PGP SIGNATURE-----