aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2022-11-20 11:11:27 +0100
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2022-11-21 21:15:20 +0100
commit83f350830ee561ddc799d1445c6024a84df9f161 (patch)
tree29880fb16a28a2b7cb63c26fafab0b85f508d532 /binutils/dwarf.c
parente66c9edea34ce13e7a6769996e1d151505d8cd3e (diff)
downloadgdb-83f350830ee561ddc799d1445c6024a84df9f161.zip
gdb-83f350830ee561ddc799d1445c6024a84df9f161.tar.gz
gdb-83f350830ee561ddc799d1445c6024a84df9f161.tar.bz2
Fix use after free introduced by $_hit_bpnum/$_hit_locno variables.
If the commands of the bpstat bs contain commands such as step or next or continue, the BS and its commands are freed by execute_control_command. So, we cannot remember the BS that was printed. Instead, remember the bpnum and locno. Regtested on debian/amd64 and re-run a few tests under valgrind.
Diffstat (limited to 'binutils/dwarf.c')
0 files changed, 0 insertions, 0 deletions