]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
alpha-ecoff: check archive element size
authorAlan Modra <amodra@gmail.com>
Mon, 6 Oct 2025 10:26:56 +0000 (20:56 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Oct 2025 11:22:28 +0000 (21:52 +1030)
commitc7b19c486012e1dd2a10434f1891c86b1398419a
tree6971de1c40af420ed24ab9115480680766f92911
parentb05d1d896058c41d49e44951a02dd74238ce2e4e
alpha-ecoff: check archive element size

If we run out of file before decompression finishes, the archive is
broken.  Don't allow the buffer to be returned with uninitialised data.

* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Return an
error if the full element size can't be decompressed.
bfd/coff-alpha.c