Add check to keep from segfaulting on a corrupt .debug_pubnames section.
authorCary Coutant <ccoutant@google.com>
Mon, 9 Jun 2014 21:55:02 +0000 (14:55 -0700)
committerCary Coutant <ccoutant@google.com>
Mon, 9 Jun 2014 21:55:02 +0000 (14:55 -0700)
commit9baa787b14d9a92067ecb1731407c5abe37d7c3c
treed4d875ec5c7edc8025a556d34a33cb151323120b
parent8f89af0abe40c9231f42ad3193a45e8fccb35720
Add check to keep from segfaulting on a corrupt .debug_pubnames section.

gold/
* dwarf_reader.cc (Dwarf_pubnames_table::read_header): Check that
unit_length is within section bounds.
gold/ChangeLog
gold/dwarf_reader.cc