On Tue, Nov 5, 2024 at 11:20 AM Chet Ramey <chet.ramey@case.edu> wrote:
On 10/18/24 4:22 PM, Grisha Levit wrote:
There's some issue with undo list handling in history-search-* commands:
Doing a successful search with a line that has an undo list causes the
undo entries from that list to leaked:
Thanks for the report. Please try this with the latest devel branch push.
Yup, can confirm much fewer fuzzing hits now.
But here's a remaining one in combination with history-expand-line:
Thanks for the report. I'm not sure what to do about this one yet.
There will be a fix for the use-after-free problem in the next devel
branch push.
HISTFILE= INPUTRC=/ bash --norc -in <<< \
$'X\n\cPX\e[A!X\et\e^\exhistory-search-forward\n\e1\cO'
=================================================================
ERROR: AddressSanitizer: heap-use-after-free on address 0xe87234c21f48
READ of size 4 at 0xe87234c21f48 thread T0
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/