PR25823, Use after free in bfd_hash_lookup
authorAlan Modra <amodra@gmail.com>
Wed, 15 Apr 2020 09:28:11 +0000 (18:58 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 15 Apr 2020 09:32:26 +0000 (19:02 +0930)
commit7ecb51549ab1ec22aba5aaf34b70323cf0b8509a
treeddc00ffe8368a7f7762ac3ac3c91ae62d36dfd81
parent0ca4866abeb9ff668fe64064fc1bceb08ca63833
PR25823, Use after free in bfd_hash_lookup

PR 25823
* peXXigen.c (_bfd_XXi_swap_sym_in <C_SECTION>): Don't use a
pointer into strings that may be freed for section name, always
allocate a new string.
bfd/ChangeLog
bfd/peXXigen.c