Overlarge allocation in _bfd_generic_read_ar_hdr_mag
authorAlan Modra <amodra@gmail.com>
Tue, 24 Mar 2020 06:56:40 +0000 (17:26 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Mar 2020 08:30:35 +0000 (19:00 +1030)
commit65109548f8fb13ac4a6c3311ea46a8b69c548576
treecc7539657dcfe380b7090334d733e9ec4a4bbd98
parent5a814d6d96bc6426ae1fa8b0d1561ad081deb159
Overlarge allocation in _bfd_generic_read_ar_hdr_mag

* archive.c (_bfd_generic_read_ar_hdr_mag): Sanity check extended
name size.  Use bfd_malloc rather than bfd_zmalloc, clearing just
struct areltdata.
bfd/ChangeLog
bfd/archive.c