From: "H.J. Lu" <hjl@lucon.org>
To: msnyder@sonic.net
Cc: binutils@sourceware.org
Subject: Re: [patch] coff-i386, guard against null
Date: Fri, 27 Jul 2007 01:04:00 -0000 [thread overview]
Message-ID: <20070727003622.GA12725@lucon.org> (raw)
In-Reply-To: <15312.12.7.175.2.1185492262.squirrel@webmail.sonic.net>
On Thu, Jul 26, 2007 at 04:24:22PM -0700, msnyder@sonic.net wrote:
> > On Thu, Jul 26, 2007 at 11:52:07AM -0700, msnyder@sonic.net wrote:
> >> > On Thu, Jul 26, 2007 at 07:41:39AM -0400, Daniel Jacobowitz wrote:
> >> >> On Wed, Jul 25, 2007 at 07:18:55PM -0700, H.J. Lu wrote:
> >> >> > On Wed, Jul 25, 2007 at 05:21:13PM -0700, msnyder@sonic.net wrote:
> >> >> > > Other code in this function checks to see if sym is null.
> >> >> > > If it's null here, it'll fail.
> >> >> > >
> >> >> >
> >> >> > > 2007-07-25 Michael Snyder <msnyder@access-company.com>
> >> >> > >
> >> >> > > * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
> >> >> > >
> >> >> >
> >> >> > I prefer BFD_ASSERT (sym != NULL).
> >> >>
> >> >> BFD_ASSERT returns, though.
> >> >
> >> > I'd like to know when this condition happens. Crash is better than
> >> > silent return. That is how BFD_ASSERT is used other places.
> >>
> >> But it doesn't fix the problem that I set out to fix.
> >> If it returns, we'll still crash.
> >>
> >> H.J., the change I submitted is consistant with existing code
> >> in this module. There are six local uses of "if (x != NULL)",
> >> and only one local use of BFD_ASSERT. I don't mind if you want
> >> to add a BFD_ASSERT in addition, but why not let my change go in?
> >
> > OK with BFD_ASSERT.
>
> Sorry, I don't understand your reply.
Your change is OK if you also add a BFD_ASSERT so that we will
know something is wrong.
Thanks.
H.J.
next prev parent reply other threads:[~2007-07-27 0:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-26 0:54 msnyder
2007-07-26 2:20 ` H.J. Lu
2007-07-26 12:34 ` Daniel Jacobowitz
2007-07-26 13:46 ` H.J. Lu
2007-07-26 18:54 ` msnyder
2007-07-26 20:01 ` H.J. Lu
2007-07-26 23:52 ` msnyder
2007-07-27 1:04 ` H.J. Lu [this message]
2007-07-27 1:42 ` msnyder
2007-07-26 13:08 ` Alan Modra
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=20070727003622.GA12725@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sourceware.org \
--cc=msnyder@sonic.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).