diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-05 13:13:33 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-05 13:13:33 -0700 |
commit | 33af066d07d495c81c7c102125aec8dbac62c27b (patch) | |
tree | 8b5490d3eb5add969f8df4a9cf471f2fa1f7c2d9 /ld/testsuite/ld-mep | |
parent | 843bf75416dd11d91a5d617f7a49f6e9e5025b42 (diff) | |
download | binutils-gdb-33af066d07d495c81c7c102125aec8dbac62c27b.tar.gz |
Preserve artificial CU name in process_psymtab_comp_unit_reader
This fixes a use-after-free that Simon pointed out.
process_psymtab_comp_unit_reader was allocating an artificial name for
a CU, and then discarding it. However, this name was preserved in the
cached file_and_directory. This patch arranges for the allocated name
to be preserved there.
Diffstat (limited to 'ld/testsuite/ld-mep')
0 files changed, 0 insertions, 0 deletions