On Feb 17 2022, Chet Ramey wrote:
> Thanks for the report. This is a different issue; some assumptions that the
> change to history-search-{forward,backward} uncovered.
It's still broken. You get a double free when you modify the line
selected by <history-search-backward>, but then leave it and execute a
different line instead.
bash-5.2$ history
1 echo 1
2 echo 2
3 echo 3
4 history
Now type e, <history-search-backward>, <end-of-line>, 4,
<previous-history>, <accept-line>.
bash-5.2$ history
1 echo 1
2 echo 2
3* echo 34
4 history
5 echo 2
6 history
Now type <previous-history>*4 (move to line 3), <revert-line> -> crash
--
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."