binutils-gdb/libctf
Nick Alcock ef21dd3bcf libctf: do not crash when CTF symbol or variable linking fails
When linking fails, we delete all the generated outputs, but we fail to
remove them from the ctf_link_outputs hash we stuck them in before doing
symbol and variable section linking (which we had to do because that's
where ctf_create_per_cu, used by both, looks for them).  This leaves
stale pointers to freed memory behind, and crashes soon follow.

Fix obvious.

libctf/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-link.c (ctf_link_deduplicating): Clean up the ctf_link_outputs
	hash on error.
2020-11-20 13:34:13 +00:00
..
.gitignore
aclocal.m4
ChangeLog libctf: do not crash when CTF symbol or variable linking fails 2020-11-20 13:34:13 +00:00
config.h.in
configure
configure.ac
ctf-archive.c libctf, include: CTF-archive-wide symbol lookup 2020-11-20 13:34:11 +00:00
ctf-create.c libctf: error-handling fixes 2020-11-20 13:34:12 +00:00
ctf-decl.c
ctf-decls.h
ctf-dedup.c libctf, ld: properly deduplicate function types 2020-11-20 13:34:10 +00:00
ctf-dump.c libctf: adjust dumper for symtypetab changes 2020-11-20 13:34:09 +00:00
ctf-endian.h
ctf-error.c
ctf-hash.c libctf: symbol type linking support 2020-11-20 13:34:08 +00:00
ctf-impl.h libctf, include: CTF-archive-wide symbol lookup 2020-11-20 13:34:11 +00:00
ctf-inlines.h
ctf-intl.h
ctf-labels.c
ctf-link.c libctf: do not crash when CTF symbol or variable linking fails 2020-11-20 13:34:13 +00:00
ctf-lookup.c libctf: symbol type linking support 2020-11-20 13:34:08 +00:00
ctf-open-bfd.c bfd, include, ld, binutils, libctf: CTF should use the dynstr/sym 2020-11-20 13:34:07 +00:00
ctf-open.c libctf, include: add ctf_getsymsect and ctf_getstrsect 2020-11-20 13:34:12 +00:00
ctf-qsort_r.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c libctf: symbol type linking support 2020-11-20 13:34:08 +00:00
ctf-subr.c libctf: error-handling fixes 2020-11-20 13:34:12 +00:00
ctf-types.c libctf: symbol type linking support 2020-11-20 13:34:08 +00:00
ctf-util.c libctf: symbol type linking support 2020-11-20 13:34:08 +00:00
elf.h
libctf.ver libctf, include: add ctf_getsymsect and ctf_getstrsect 2020-11-20 13:34:12 +00:00
Makefile.am
Makefile.in
swap.h