[PATCH] readelf: handle corrupted chains better

Nicholas Clifton nickc@redhat.com
Tue Feb 24 11:28:00 GMT 2015


Hi Mike,

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

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

Cheers
   Nick



More information about the Binutils mailing list