This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9858] New: sprintf gives SIGSEGV
- From: "alx_me at mail dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Feb 2009 13:53:53 -0000
- Subject: [Bug libc/9858] New: sprintf gives SIGSEGV
- Reply-to: sourceware-bugzilla at sourceware dot org
char n[100];
char *p=0;
sprintf(n,"%s",p);
gives SIGSEGV in glibc 2.6.1 and 2.9
in opposite:
snprintf in such case gives "(NULL)" as expected
sprintf in glibc 2.3.6 and 2.2.3 gives "(NULL)" correctly
--
Summary: sprintf gives SIGSEGV
Product: glibc
Version: 2.8
Status: NEW
Severity: critical
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: alx_me at mail dot ru
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9858
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.