aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorEspen Grindhaug <espen@grindhaug.org>2014-11-27 15:49:23 +0000
committerNick Clifton <nickc@redhat.com>2014-11-27 15:49:23 +0000
commitc9c1d674406c5fff9d2f2ea771e4288cb6bf4e5a (patch)
tree180e70155d8ea5c69ab70bc7c20fdde1436bd416 /libiberty/testsuite
parent3a1cfc456f3b3f422b7c6c0d63891b015ea234b9 (diff)
downloadgdb-c9c1d674406c5fff9d2f2ea771e4288cb6bf4e5a.zip
gdb-c9c1d674406c5fff9d2f2ea771e4288cb6bf4e5a.tar.gz
gdb-c9c1d674406c5fff9d2f2ea771e4288cb6bf4e5a.tar.bz2
Fixes an infinite loop in readelf parsing a corrupt binary, and other minor corrections.
PR binutils/17531 * readelf.c (get_data): Move excessive length check to earlier on in the function and allow for wraparound in the arithmetic. (get_32bit_elf_symbols): Terminate early if the section size is zero. Check for an invalid sh_entsize. Check for an index section with an invalid size. (get_64bit_elf_symbols): Likewise. (process_section_groups): Check for an invalid sh_entsize.
Diffstat (limited to 'libiberty/testsuite')
0 files changed, 0 insertions, 0 deletions