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>
Tue, 29 May 2018 13:46:35 +0000 (14:46 +0100)
commitc72cc290a66869d85f247ede96563352d41b5116
tree3dd5656a8d109108202d88e3cb4a275e5c05ab19
parent88ce53f0570261978845b9defa39f53631b06af1
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