This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/323] New: missing NULL pointer check in s(n)printf
- From: "g dot tenchio at telco-tech dot de" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Aug 2004 12:07:56 -0000
- Subject: [Bug libc/323] New: missing NULL pointer check in s(n)printf
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Try the following:
void main() {
sprintf((char)0,"Goodbye\n");
}
Result: core dump
Expected: nothing
Simply a missing NULL pointer check?
Fedora Core II
glibc-2.3.3-27
--
Summary: missing NULL pointer check in s(n)printf
Product: glibc
Version: 2.3.3
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: g dot tenchio at telco-tech dot de
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: i686-redhat-linux
http://sources.redhat.com/bugzilla/show_bug.cgi?id=323
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.