binutils-gdb/libctf
Nick Alcock 81900d2bac
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-01 20:39:28 +01:00
..
doc
testsuite libctf: tests: prune warnings from compiler output 2022-06-21 19:27:15 +01:00
.gitignore
aclocal.m4
ChangeLog Add markers for 2.39 branch 2022-07-08 10:41:07 +01:00
ChangeLog-2020
config.h.in
configure
configure.ac
ctf-archive.c
ctf-create.c libctf: fix ref leak of names of newly-inserted non-root-visible types 2024-08-01 20:39:28 +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 libctf: Avoid use of uninitialised variables 2022-08-01 09:40:01 +09:30
ctf-lookup.c
ctf-open-bfd.c
ctf-open.c
ctf-qsort_r.c
ctf-serialize.c libctf: avoid mingw warning 2022-06-21 19:27:15 +01:00
ctf-sha1.c
ctf-sha1.h
ctf-string.c
ctf-subr.c
ctf-types.c
ctf-util.c
elf.h
libctf.ver
Makefile.am
Makefile.in
NEWS
swap.h