[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integer overflow of i in string_extract_verbatim
From: |
Chet Ramey |
Subject: |
Re: Integer overflow of i in string_extract_verbatim |
Date: |
Mon, 8 May 2023 10:50:58 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 |
On 4/28/23 6:25 PM, Eric Li wrote:
Bash Version: 5.2
Patch Level: 15
Release Status: release
Description:
Bash runs into segmentation fault when spawning a process with
argc larger than 2GB. Can debug using GDB and observe that
subst.c:1204 (string_extract_verbatim, "while (c =
string[i])")
crashes because i = -2147483648. string[i] points to invalid
memory.
Thanks for the report.
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Integer overflow of i in string_extract_verbatim,
Chet Ramey <=