aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2024-07-29 12:45:09 +0100
committerNick Alcock <nick.alcock@oracle.com>2024-08-02 13:54:40 +0100
commitacc7a74a2c72dd32d8b17f3e13a06a4268bd0c73 (patch)
treeab3c8455e5ec74801ed1452ea430c8228337dd44 /gas
parent3437a8bad8a4f217e84d6e583b59a4a7f16e5a72 (diff)
downloadgdb-binutils-2_35-branch.zip
gdb-binutils-2_35-branch.tar.gz
gdb-binutils-2_35-branch.tar.bz2
libctf: fix ref leak of names of newly-inserted non-root-visible typesbinutils-2_35-branch
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 fe4c2d55634c700ba527ac4183e05c66e9f93c62 ("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.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions