binutils-gdb/libctf
Nick Alcock acc7a74a2c
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 13:54:40 +01:00
..
aclocal.m4 libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
ChangeLog Add markers for binutils 2.35 branch 2020-07-04 10:16:22 +01:00
config.h.in libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
configure libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
configure.ac libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
ctf-archive.c libctf: avoid nonportable __thread in CTF archive handling 2020-06-26 15:56:39 +01:00
ctf-create.c libctf: fix ref leak of names of newly-inserted non-root-visible types 2024-08-02 13:54:40 +01:00
ctf-decl.c
ctf-decls.h
ctf-dump.c
ctf-endian.h
ctf-error.c
ctf-hash.c
ctf-impl.h libctf: work with compilers not supporting GNU C attributes 2020-06-26 15:56:39 +01:00
ctf-labels.c
ctf-link.c
ctf-lookup.c
ctf-open-bfd.c libctf: add some missing #includes. 2020-06-26 15:56:39 +01:00
ctf-open.c
ctf-qsort_r.c
ctf-string.c
ctf-subr.c
ctf-types.c
ctf-util.c
elf.h
libctf.ver libctf, binutils: support CTF archives like objdump 2020-06-26 15:56:39 +01:00
Makefile.am
Makefile.in libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
swap.h libctf, elfcpp, gold: do not assume that <byteswap.h> contains bswap_* 2020-06-26 15:56:39 +01:00