This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PR22397, BFD internal error when message locale isn't C
- From: Andreas Schwab <schwab at suse dot de>
- To: Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 08 Mar 2018 14:12:39 +0100
- Subject: Re: PR22397, BFD internal error when message locale isn't C
- Authentication-results: sourceware.org; auth=none
- References: <20171105082253.GP10905@bubble.grove.modra.org> <20171105113045.GQ10905@bubble.grove.modra.org>
On Nov 05 2017, Alan Modra <amodra@gmail.com> wrote:
> While an abort after storing out of bounds by one to an array in our
> caller is probably OK in practice, it's better to check before storing.
Actually, a clever compiler would have removed the abort, because
accessing the array index would have asserted that the index is in
bounds.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."