aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-09-07 08:43:53 +0930
committerAlan Modra <amodra@gmail.com>2023-09-07 08:53:25 +0930
commit9e99d10c9a7fc20adb0009d3761fe3cdfdbe0a8c (patch)
treebbce1c18711e2ffc0945f1adef26cc6fdd4141b7 /gdb/testsuite/gdb.python
parent313b2841b8e9046ea658104988e01bedf6148d5f (diff)
downloadbinutils-9e99d10c9a7fc20adb0009d3761fe3cdfdbe0a8c.zip
binutils-9e99d10c9a7fc20adb0009d3761fe3cdfdbe0a8c.tar.gz
binutils-9e99d10c9a7fc20adb0009d3761fe3cdfdbe0a8c.tar.bz2
PR30828, notes obstack memory corruption
Commit 3bab069c29b3 carelessly allowed "string" to be released from the notes obstack twice, with the second call to obstack_free releasing memory for a fixup that just happened to be the same size as the original string. The fixup then of course was overwritten. This patch fixes that problem, and another that could occur on an error path. PR 30828 * stabs.c (s_stab_generic): Don't free string twice. Don't blow away entire notes obstack on a missing string.
Diffstat (limited to 'gdb/testsuite/gdb.python')
0 files changed, 0 insertions, 0 deletions