Check thin archive element file size against archive header
authorAlan Modra <amodra@gmail.com>
Tue, 28 Dec 2021 12:21:55 +0000 (22:51 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Jan 2022 00:49:14 +0000 (11:19 +1030)
commit48e3e6aec8a4f37d00ea6c0da3ab45e76490e3db
tree1960fee8dd31a1aa702c126fa6a7d05ecb6fb55e
parente29de63f0d160268850d79fa29b6c0b1ee65fd75
Check thin archive element file size against archive header

Makes it a little less likely for someone to break their thin archives.

* archive.c (_bfd_get_elt_at_filepos): Check thin archive
element file size.
bfd/archive.c