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>
Wed, 16 May 2018 14:21:19 +0000 (15:21 +0100)
commit28229d305e20be856fef19d7384339706c66337a
treeb16a4904270046584ae56dd32ee4ab2109a3301d
parent2863002c0dde721a10671086260c41254f786ae9
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