| commit | 83f350830ee561ddc799d1445c6024a84df9f161 | [log] [tgz] |
|---|---|---|
| author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | Sun Nov 20 11:11:27 2022 +0100 |
| committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | Mon Nov 21 21:15:20 2022 +0100 |
| tree | 29880fb16a28a2b7cb63c26fafab0b85f508d532 | |
| parent | e66c9edea34ce13e7a6769996e1d151505d8cd3e [diff] |
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.