bfd/elf-attrs.c: Fix possible infinite loop parsing attributes
authorWill Newton <will.newton@linaro.org>
Wed, 5 Nov 2014 15:24:30 +0000 (15:24 +0000)
committerWill Newton <will.newton@linaro.org>
Thu, 6 Nov 2014 13:01:18 +0000 (13:01 +0000)
commit1fe9dc4519a86b856da7de0837366bbece82f2de
tree5eb97c8baeeb6f2cc967070b1952d8b545abe9d6
parentf321b0377203a27f3ee54bf8e0d613e8404e9c6b
bfd/elf-attrs.c: Fix possible infinite loop parsing attributes

Handle the case of a zero length section or sub-section in
_bfd_elf_parse_attributes and in doing so prevent an infinite loop
in the parser.

bfd/ChangeLog:

2014-11-06  Will Newton  <will.newton@linaro.org>

* elf-attrs.c (_bfd_elf_parse_attributes): Handle zero
length sections and sub-sections.
bfd/ChangeLog
bfd/elf-attrs.c