Prevent attempts to call strncpy with a zero-length field by chacking the size of...
authorNick Clifton <nickc@redhat.com>
Tue, 6 Feb 2018 15:48:29 +0000 (15:48 +0000)
committerMatthias Klose <doko@debian.org>
Thu, 8 Mar 2018 05:04:10 +0000 (05:04 +0000)
commit0ea7f3c3e5705072e06b271fa3c33a152a6169f7
tree6665e9325e16b185f7ccb8bc9e431155345985f8
parent001d15fd772a87005b028670e8f84622089f6a92
Prevent attempts to call strncpy with a zero-length field by chacking the size of debuglink sections.

PR 22794
* opncls.c (bfd_get_debug_link_info_1): Check the size of the
section before attempting to read it in.
(bfd_get_alt_debug_link_info): Likewise.

Gbp-Pq: Name pr22794.diff
bfd/opncls.c