This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc4 - mudflap questions/problems
- From: "Bram Matthys (Syzop)" <syzop at vulnscan dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 26 Jul 2005 04:01:03 +0200
- Subject: gcc4 - mudflap questions/problems
Hi,
I've been trying mudflap today and I got the following problems/questions:
1. Is there an option to turn off error checking or displaying of
messages if an object size is unknown, like 'extern char blah[]'.
2. After resolving 1) I got a crash with mudflap upon accept(). A
backtrace shows it happens in __mfwrap_accept().
The accept() line in the code is just normal though:
if ((fd = accept(cptr->fd, NULL, NULL)) < 0)
Where 'p cptr->fd' shows '5'.
Unfortunately I don't have much more info besides that, since this is
just a "normal lib", no debugging symbols etc.
Is there an option to turn this checking off? Because I'm mainly
interested in out-of-bounds buffer usage, so I don't know why it's
hooking accept(). I did a quick look with MUDFLAP_OPTIONS=-help but
couldn't find anything to disable this.
Additional info:
Using fedora core 4, gcc 4.0.0 20050519 (Red Hat 4.0.0-8)
Is this old / broken? I didn't see any online update available from
fedora at least, but I do see gcc 4.0.1 here at GNU.
Thanks in advance,
Bram.
--
Bram Matthys
Software developer/IT consultant syzop@vulnscan.org
PGP key: www.vulnscan.org/pubkey.asc
PGP fp: 8DD4 437E 9BA8 09AA 0A8D 1811 E1C3 D65F E6ED 2AA2