ECOFF archive uninitialised read
authorAlan Modra <amodra@gmail.com>
Mon, 23 Mar 2020 12:53:31 +0000 (23:23 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Mar 2020 12:56:12 +0000 (23:26 +1030)
commitcf28cfef6006c41b74af126bc6ef26590d7bd1b9
tree9b3b94214b920d26770ddddcacb9a10b4a771093
parent5e737279c6e832a757f0326128e5a5f96fbdd291
ECOFF archive uninitialised read

* ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and
symbol count.  Allocate an extra byte to ensure name strings
are terminated.  Sanity check name offsets.  Release memory on
error return.
bfd/ChangeLog
bfd/ecoff.c