[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: |
Tue, 30 May 2023 10:42:47 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
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.
--
``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/