bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: history-search-* and undo lists


From: Chet Ramey
Subject: Re: history-search-* and undo lists
Date: Mon, 2 Dec 2024 10:56:08 -0800
User-agent: Mozilla Thunderbird

On 11/18/24 10:22 PM, Grisha Levit wrote:
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.


HISTFILE= INPUTRC=/ bash --norc -in <<< \
$'X\n\e[A!X\e^\e[A'
=================================================================
ERROR: LeakSanitizer: detected memory leaks


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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]