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, 15 Feb 2018 01:20:04 +0000 (01:20 +0000)
commit3581fd9d881ebc17bfba31f3af7ad47d31ac5b88
tree7761dc0067cc3500663e74315997e74b419d11c7
parent91b9d26957ae0bd1e1ec1a96261ccd2bac589773
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