Fix buffer read overrun by ensuring that DWARF sections containing strings always...
authorNick Clifton <nickc@redhat.com>
Thu, 31 Aug 2017 16:03:23 +0000 (17:03 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 31 Aug 2017 16:03:23 +0000 (17:03 +0100)
commite4f2723003859dc6b33ca0dadbc4a7659ebf1643
tree75023919c7425a0fe3d2c5854fb3638a2490dc17
parentb55f3386e45d8ba4af1a70f0684bc0089060d600
Fix buffer read overrun by ensuring that DWARF sections containing strings always end in a NUL byte.

PR 22047
* dwarf2.c (read_section): If necessary add a terminating NUL byte
to dwarf string sections.
bfd/ChangeLog
bfd/dwarf2.c