public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: gas SEGV reporting an error + patch
       [not found] <7u7j2k3po7.fsf@ld-1.internal.tilera.com>
@ 2006-07-17 12:50 ` Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2006-07-17 12:50 UTC (permalink / raw)
  To: Mat Hostetter; +Cc: bug-binutils, binutils

On Tue, Jul 11, 2006 at 03:30:16PM -0400, Mat Hostetter wrote:
> The bug is that 'report_op_error' incorrectly uses 'file' and 'line'
> in the 'else' case where they are not initialized. Because the value
> of 'file' is garbage, it is of course somewhat random whether you will
> see a crash.
> 
> The fix is trivial: since there is no location information available,
> use 'as_bad' instead of 'as_bad_where', as it was already doing for
> other errors in the 'else' case.

Applied.  Thanks!

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-17 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <7u7j2k3po7.fsf@ld-1.internal.tilera.com>
2006-07-17 12:50 ` gas SEGV reporting an error + patch Alan Modra

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).