binutils-gdb/libctf
Nick Alcock 66dd4c3850
libctf: fix ref leak of names of newly-inserted non-root-visible types
A bug in ctf_dtd_delete led to refs in the string table to the
names of non-root-visible types not being removed when the DTD
was.  This seems harmless, but actually it would lead to a write
down a pointer into freed memory if such a type was ctf_rollback()ed
over and then the dict was serialized (updating all the refs as the
strtab was serialized in turn).

Bug introduced in commit fe4c2d5563
("libctf: create: non-root-visible types should not appear in name tables")
which is included in binutils 2.35.

libctf/
	* ctf-create.c (ctf_dtd_delete): Remove refs for all types
	with names, not just root-visible ones.
2024-08-02 12:44:27 +01:00
..
testsuite libctf, create: fix ctf_type_add of structs with unnamed members 2021-01-19 15:23:25 +00:00
.gitignore
aclocal.m4
ChangeLog 2.36 release 2021-01-24 10:49:36 +00:00
ChangeLog-2020 libctf: fix old ChangeLog typo 2021-01-05 14:53:40 +00:00
config.h.in
configure configure regen 2021-01-09 15:12:44 +10:30
configure.ac
ctf-archive.c
ctf-create.c libctf: fix ref leak of names of newly-inserted non-root-visible types 2024-08-02 12:44:27 +01:00
ctf-decl.c
ctf-decls.h
ctf-dedup.c
ctf-dump.c
ctf-endian.h
ctf-error.c
ctf-hash.c
ctf-impl.h
ctf-inlines.h
ctf-intl.h
ctf-labels.c
ctf-link.c
ctf-lookup.c libctf: lookup_by_name: do not return success for nonexistent pointer types 2021-01-19 15:23:16 +00:00
ctf-open-bfd.c
ctf-open.c
ctf-qsort_r.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c
ctf-subr.c
ctf-types.c libctf, ld: fix formatting of forwards to unions and enums 2021-01-05 14:53:40 +00:00
ctf-util.c
elf.h
libctf.ver
Makefile.am libctf, testsuite: don't run without a suitable compiler 2021-01-05 17:11:20 +00:00
Makefile.in libctf, testsuite: don't run without a suitable compiler 2021-01-05 17:11:20 +00:00
swap.h