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, 8 Apr 2018 20:55:34 +0000 (21:55 +0100)
commit190b88f796a032d5c3c77d86e6554f6a3f6fa529
tree6c69cedf5d39a43fc611e5122c65dcfc3c3a773b
parente9b15dd9a299406d6b086ddd896092459a877e62
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