gas SEGV reporting an error + patch
Alan Modra
amodra@bigpond.net.au
Mon Jul 17 12:50:00 GMT 2006
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
More information about the Binutils
mailing list