PR28422, build_id use-after-free
authorAlan Modra <amodra@gmail.com>
Wed, 6 Oct 2021 07:58:47 +0000 (18:28 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Oct 2021 03:53:14 +0000 (14:23 +1030)
commit6d661cdc5be46e890ed9255e749806f46a88e26c
treed42877493bb5bf3cc50d9c1058d30287d30bb0a9
parent89e62f74546ebcbece1dd79993c45bdb7d236b2e
PR28422, build_id use-after-free

This fixes a bug in commit 5d9bbb73c1df.  All fields preserved from a
bfd in struct bfd_preserve need to be cleared in bfd_reinit.

PR 28422
* format.c (bfd_reinit): Clear build_id.
bfd/format.c