[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: size_t issue in expand_string_dollar_quote
From: |
Chet Ramey |
Subject: |
Re: size_t issue in expand_string_dollar_quote |
Date: |
Fri, 31 Mar 2023 16:47:59 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
On 3/29/23 6:28 PM, Grisha Levit wrote:
bash --norc -in <<<$'"\e\cE'
ERROR: AddressSanitizer: negative-size-param: (size=-1)
#0 wrap_strncpy+0x228
#1 expand_string_dollar_quote subst.c:4108
#2 shell_expand_line bashline.c:2887
Thanks for the report.
probably not the cleanest fix but the issue is here:
It's not unreasonable.
--
``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/