aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/plugin_pr22868_b.c
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-01 15:46:03 +0100
commit8a6764d35e5c15d78de8aef8f27af3eefd9d7544 (patch)
tree05237b2bd06dde54ac9186ce2a009f94055748bf /gold/testsuite/plugin_pr22868_b.c
parentd9ddfab9be2c25e049d1d42775db600d45eee31b (diff)
downloadfsf-binutils-gdb-binutils-2_42-branch.zip
fsf-binutils-gdb-binutils-2_42-branch.tar.gz
fsf-binutils-gdb-binutils-2_42-branch.tar.bz2
libctf: fix ref leak of names of newly-inserted non-root-visible typesbinutils-2_42-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 'gold/testsuite/plugin_pr22868_b.c')
0 files changed, 0 insertions, 0 deletions