Fix another memory access error in readelf when parsing a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Feb 2017 14:40:39 +0000 (14:40 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Feb 2017 14:40:39 +0000 (14:40 +0000)
commit43a444f9c5bfd44b4304eafd78338e21d54bea14
tree72e109a42e87b744a7c2e85ff161ea0a2b85c35b
parentc48cfeddf730d181648182097dbb179dc82c5b58
Fix another memory access error in readelf when parsing a corrupt binary.

PR binutils/21156
* dwarf.c (cu_tu_indexes_read): Move into...
(load_cu_tu_indexes): ... here.  Change the variable into
tri-state.  Change the function into boolean, returning
false if the indicies could not be loaded.
(find_cu_tu_set): Return NULL if the indicies could not be
loaded.
binutils/ChangeLog
binutils/dwarf.c