public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL
@ 2005-07-26 18:53 syzop at vulnscan dot org
2005-07-26 18:56 ` [Bug libmudflap/23084] " syzop at vulnscan dot org
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: syzop at vulnscan dot org @ 2005-07-26 18:53 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libmudflap/23084] mudflap crash upon accept() with argement 2 and 3 as NULL
2005-07-26 18:53 [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL syzop at vulnscan dot org
@ 2005-07-26 18:56 ` syzop at vulnscan dot org
2005-07-26 19:34 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: syzop at vulnscan dot org @ 2005-07-26 18:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From syzop at vulnscan dot org 2005-07-26 18:53 -------
Created an attachment (id=9369)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9369&action=view)
C program to reproduce this mudflap bug
Compiled with:
gcc -o mudflaptest mudflaptest.c -Wall -fmudflap -lmudflap
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libmudflap/23084] mudflap crash upon accept() with argement 2 and 3 as NULL
2005-07-26 18:53 [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL syzop at vulnscan dot org
2005-07-26 18:56 ` [Bug libmudflap/23084] " syzop at vulnscan dot org
@ 2005-07-26 19:34 ` pinskia at gcc dot gnu dot org
2005-09-23 21:58 ` fche at redhat dot com
2005-09-23 21:59 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-26 19:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-26 18:56 -------
Confirmed by looking at the source.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
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 |
Last reconfirmed|0000-00-00 00:00:00 |2005-07-26 18:56:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libmudflap/23084] mudflap crash upon accept() with argement 2 and 3 as NULL
2005-07-26 18:53 [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL syzop at vulnscan dot org
2005-07-26 18:56 ` [Bug libmudflap/23084] " syzop at vulnscan dot org
2005-07-26 19:34 ` pinskia at gcc dot gnu dot org
@ 2005-09-23 21:58 ` fche at redhat dot com
2005-09-23 21:59 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2005-09-23 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fche at redhat dot com 2005-09-23 21:58 -------
patch committed
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libmudflap/23084] mudflap crash upon accept() with argement 2 and 3 as NULL
2005-07-26 18:53 [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL syzop at vulnscan dot org
` (2 preceding siblings ...)
2005-09-23 21:58 ` fche at redhat dot com
@ 2005-09-23 21:59 ` cvs-commit at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-23 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-23 21:58 -------
Subject: Bug 23084
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: fche@gcc.gnu.org 2005-09-23 21:58:42
Modified files:
libmudflap : ChangeLog mf-hooks2.c
Log message:
2005-09-23 Frank Ch. Eigler <fche@elastic.org>
PR 23084.
* mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libmudflap/ChangeLog.diff?cvsroot=gcc&r1=1.72&r2=1.73
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libmudflap/mf-hooks2.c.diff?cvsroot=gcc&r1=1.14&r2=1.15
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libmudflap/23084] mudflap crash upon accept() with argement 2 and 3 as NULL
[not found] <bug-23084-11060@http.gcc.gnu.org/bugzilla/>
@ 2006-01-01 20:54 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01 20:54 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23084
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-01-01 20:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26 18:53 [Bug libmudflap/23084] New: mudflap crash upon accept() with argement 2 and 3 as NULL syzop at vulnscan dot org
2005-07-26 18:56 ` [Bug libmudflap/23084] " syzop at vulnscan dot org
2005-07-26 19:34 ` pinskia at gcc dot gnu dot org
2005-09-23 21:58 ` fche at redhat dot com
2005-09-23 21:59 ` cvs-commit at gcc dot gnu dot org
[not found] <bug-23084-11060@http.gcc.gnu.org/bugzilla/>
2006-01-01 20:54 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).