bug-readline
[Top][All Lists]
Advanced

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

Re: [PATCH] do-lowercase-version for non-uppercase chars


From: Chet Ramey
Subject: Re: [PATCH] do-lowercase-version for non-uppercase chars
Date: Fri, 1 Dec 2023 12:46:43 -0800
User-agent: Mozilla Thunderbird

On 11/30/23 12:20 AM, Grisha Levit wrote:
On Tue, May 30, 2023, 10:43 Chet Ramey <chet.ramey@case.edu> wrote:

On 5/27/23 3:04 PM, Grisha Levit wrote:
If do-lowercase-version is bound to a key that is either not an uppercase
character or is a character that is its own lowercase version, then
readline will either loop forever with no way to interrupt (if the compiler
optimized out the recursion) or will exceed the stack depth and segfault.

This sounds more like a "my arm hurts when I do that" kind of situation,
but readline still shouldn't crash.

One more for completeness:

     $ bind '"ab": "c"' '"a": do-lowercase-version'
     $ ax
     Segmentation fault

Thanks for the report and patch.

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]