------- Comment #5 from meklund at cisco dot com  2007-11-28 19:43 -------
Subject: Re:  feature request: generate a warning for sizeof on a pointer

Hi Manu,

This is in regards to your Comments for the gcc feature enhancement
request, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702.

On Wed, Nov 28, 2007 at 05:34:35PM -0000, manu at gcc dot gnu dot org wrote:
>
> ------- Comment #4 from manu at gcc dot gnu dot org  2007-11-28 17:34 -------
> So what the BSD people said about this? Did they agree with your assessment?
> How many of those 26 likely bugs were considered "real" bugs by them?

When I contacted Matt Dillon, he said all of them except two were
definitely bugs.  The other two were not in the Dragonfly code base,
so he didn't comment on those.  The 24 definite bugs have been
corrected in Dragonfly.

Paul Vixie corrected the bind bugs in the BIND8 sources and said
thought this check would be a great compiler feature.

I don't know if the bugs have been fixed in FreeBSD.  I contacted
[EMAIL PROTECTED] to make sure there were no security
problems cause by these bugs and got no response.  I didn't pursue the
matter further after that.

>
> It really seems too noisy and with no clear way to avoid or workaround an
> invalid warning.
>

This should be implemented in such a way that 'sizeof(ptr)' gets
warning, but 'sizeof(char *)' doesn't.

--mark


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702

Reply via email to