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>
Sun, 18 Mar 2018 04:51:40 +0000 (04:51 +0000)
commite4d3f0b47c062e9dc49840f3bfc684c1e2dd5c97
treec71de3e783f3e113e11f4087c7f575f578cc8712
parent1c95764ab54f92e213f194133ed534469b0a01bb
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