[Bug c++/41776] Segmentation fault printf(NULL\n)
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 21 07:13:00 GMT 2009
------- Comment #1 from jakub at gcc dot gnu dot org 2009-10-21 07:12 -------
The testcase is invalid, you can't pass NULL to %s. The fact that glibc printf
doesn't crash on it is just an extension. In your case gcc optimizes the
printf into puts and that one crashes even with glibc.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41776
More information about the Gcc-bugs
mailing list