]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
Re: asan: readelf: process_mips_specific buffer overflow
authorAlan Modra <amodra@gmail.com>
Thu, 11 Jun 2020 05:08:26 +0000 (14:38 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 11 Jun 2020 05:20:48 +0000 (14:50 +0930)
commitfd17d1e695518ab45c6a06596df2e6c09c1d1a46
tree2dd4ac5349821f715217ddb51e4d62218ac2340d
parentd0c4e7802dae311d71059d0e2114150a5e09acf1
Re: asan: readelf: process_mips_specific buffer overflow

Let's do without that unnecessary internal option buffer.  This also
fixes another bug in that the REGINFO data was being taken from the
calloc'd internal option buffer, so was all zeros.

* readelf.c (process_mips_specific): Don't alloc memory for
Elf_Internal_Options.
binutils/ChangeLog
binutils/readelf.c