From: msnyder@sonic.net
To: msnyder@sonic.net, gdb-patches@sourceware.org
Subject: Re: [OB] pointer ref, m2-typeprint.c
Date: Fri, 29 Jun 2007 01:36:00 -0000 [thread overview]
Message-ID: <9780.12.7.175.2.1183078961.squirrel@webmail.sonic.net> (raw)
In-Reply-To: <20070629004328.GA18113@caradoc.them.org>
> Ooh thanks, that seems to have fixed attachments.
>
> On Thu, Jun 28, 2007 at 05:37:03PM -0700, msnyder@sonic.net wrote:
>> CHECK_TYPEDEF (type);
>> - code = TYPE_CODE (type);
>
> Coverity's software is a tool, not a goal, and it's no substitute for
> knowing what the code is doing.
Daniel, I know what the code is doing.
I'm not doing this without analyzing things.
Doesn't mean I can't make a mistake -- but I'm not just
doing things blindly...
> Please stop moving things around just to make it happy.
I wouldn't do that.
> If the second line I quoted could crash, the first
> line definitely will; so if TYPE can really be NULL here, we should
> fix it properly (instead of this change, which removes the helpful
> notice that something is wrong :-).
Nooooo... I don't think my change removes any notice.
Take another look, please?
You may be right that CHECK_TYPEDEF is also a deref.
I confess I took that for granted without checking it.
I always assumed that CHECK_TYPEDEF was safe, since we so often
blythely call it without checking. I guess it's not...
next prev parent reply other threads:[~2007-06-29 1:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 0:44 msnyder
2007-06-29 1:02 ` Daniel Jacobowitz
2007-06-29 1:36 ` msnyder [this message]
2007-06-29 16:17 ` Daniel Jacobowitz
2007-06-29 18:49 ` Michael Snyder
2007-07-01 15:33 ` Daniel Jacobowitz
2007-07-03 20:50 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9780.12.7.175.2.1183078961.squirrel@webmail.sonic.net \
--to=msnyder@sonic.net \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox