This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10818] printf("%s\n", NULL) segfaults


------- Additional Comments From kir at sacred dot ru  2009-10-21 07:45 -------
Relevant GCC bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15685

Relevant portion of glibc doc [1]:
> If you accidentally pass a null pointer as the argument for a ?%s?
> conversion, the GNU library prints it as ?(null)?. We think this
> is more useful than crashing. But it's not good practice to pass
> a null argument intentionally. 

[1]
http://www.gnu.org/software/libc/manual/html_node/Other-Output-Conversions.html#Other-Output-Conversions

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10818

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]