This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL
- From: "syzop at vulnscan dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2005 18:52:10 -0000
- Subject: [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Mudflap crashes when it sees an accept in the form of:
accept(lsock, NULL, NULL)
and does not crash upon:
accept(lsock, &addr, &len);
The former case is - AFAIK - legal, quoting from the accept() manpage:
'When addr is NULL nothing is filled in.'
Attached is a minimal C program to reproduce this bug.
I tried this both on 4.0.0 and 4.0.1.
--
Summary: mudflap crash upon accept() with argement 2 and 3 as
NULL
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libmudflap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: syzop at vulnscan dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: gcc 4.0.1 20050720 (Red Hat 4.0.1-4)
GCC target triplet: Linux 2.6.11-1 -- Fedora Core 4 w/updates-testing
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084