[PATCH] readelf: handle corrupted chains better
Mike Frysinger
vapier@gentoo.org
Tue Feb 24 18:00:00 GMT 2015
On 24 Feb 2015 09:56, Nicholas Clifton wrote:
> > 2015-02-24 Mike Frysinger <vapier@gentoo.org>
> >
> > PR binutils/17531
> > * readelf.c (process_symbol_table): Declare chained. Increment it
> > in every loop. Abort when chained is larger than nchains. Move
> > error check outside of chain loop.
>
> Approved - please apply.
done
> (Thanks for doing this. I knew that there was a better way to protect
> against loops, but my brain just could not come up with it).
no worries ... i hit the same bug in a package i maintain so i figured i'd fix
readelf too while i was at it
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20150224/386544d2/attachment.sig>
More information about the Binutils
mailing list