]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
PR22552, readelf heap buffer overflow in load_debug_section
authorAlan Modra <amodra@gmail.com>
Wed, 6 Dec 2017 07:02:48 +0000 (17:32 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Dec 2017 07:35:18 +0000 (18:05 +1030)
commit9c1ce1085070f42718e341d89a28881edd96161f
tree1c2d97c4b9386682093093afd318bdc71f4a792f
parent07d6d2b8345ef3dc82eab49635acac9ee67dbb18
PR22552, readelf heap buffer overflow in load_debug_section

PR 22552
* readelf.c (process_file_header): Don't assume XINDEX case
value for e_shstrndx is within bounds.
(load_debug_section): Sanity test e_shstrndx before attempting
to read .shstrtab.  Wrap long lines.
binutils/ChangeLog
binutils/readelf.c