|
| From: | Chet Ramey |
| Subject: | Re: Bug in the read command |
| Date: | Wed, 17 Sep 2025 10:38:53 -0400 |
| User-agent: | Mozilla Thunderbird |
On 9/17/25 10:37 AM, Oğuz wrote:
On Wed, Sep 17, 2025 at 5:31 PM Chet Ramey <chet.ramey@case.edu> wrote:Thanks, this is a mostly-unrelated issue that is easily fixed.Ah, you beat me to it. The problem is `i' ends up with -1 here https://cgit.git.savannah.gnu.org/cgit/bash.git/tree/builtins/read.def?h=devel#n595 and then the SIGTERM and SIGCONT send bash here https://cgit.git.savannah.gnu.org/cgit/bash.git/tree/builtins/read.def?h=devel#n541 and it corrupts the malloc header by writing to `input_string[-1]', isn't it?
Pretty much.
--
``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/
| [Prev in Thread] | Current Thread | [Next in Thread] |