[Bug libc/9858] New: sprintf gives SIGSEGV

alx_me at mail dot ru sourceware-bugzilla@sourceware.org
Tue Feb 17 13:54:00 GMT 2009


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.



More information about the Glibc-bugs mailing list