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>
Fri, 9 Feb 2018 18:24:28 +0000 (18:24 +0000)
commitb6633521b5653e9413c6104407db1ef07f319037
treecb53cd31573ce5c8b1d6f820b38d98b95d7a96c2
parent8a318c1ee232618ec02b3064714702a42880992b
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