[Bug c/40097] inconsistent printf handling
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 11 04:38:00 GMT 2009
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-11 04:38 -------
(In reply to comment #2)
> (In reply to comment #1)
> > Actually this code is undefined. Using %s with a NULL pointer is undefined so
> > GCC's behavior is correct.
> >
>
> You are wrong, the GCC behavior is incorrect.
> Please compile code and run before replying.
>
It does not matter if the GCC/glibc behavior is different between those lines,
the code is undefined. On some targets all 4-7 lines will crash.
-- Pinski
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40097
More information about the Gcc-bugs
mailing list