diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2022-11-20 11:11:27 +0100 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2022-11-21 21:15:20 +0100 |
commit | 83f350830ee561ddc799d1445c6024a84df9f161 (patch) | |
tree | 29880fb16a28a2b7cb63c26fafab0b85f508d532 /binutils/dwarf.c | |
parent | e66c9edea34ce13e7a6769996e1d151505d8cd3e (diff) | |
download | gdb-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