[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bind_assoc_variable: free key if cannot assign
From: |
Chet Ramey |
Subject: |
Re: [PATCH] bind_assoc_variable: free key if cannot assign |
Date: |
Fri, 31 May 2024 11:56:23 -0400 |
User-agent: |
Mozilla Thunderbird |
On 5/30/24 5:30 PM, Grisha Levit wrote:
Avoid leaking expansion of `x' in `declare -Ar A; A[x]='
Thanks for the report. I think a more appropriate place to fix this is
assign_array_element_internal(), since that's where the key is allocated.
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/
OpenPGP_signature.asc
Description: OpenPGP digital signature