Re: [PATCH] use-after-free in expand_string_dollar_quote

2023-06-03 Thread Chet Ramey
On 6/1/23 12:42 PM, Grisha Levit wrote: A use-after-free happens in expand_string_dollar_quote if noexpand_translation is enabled and a string's translation is the same length as the string itself. Thanks for the report and fix. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chau

[PATCH] use-after-free in expand_string_dollar_quote

2023-06-01 Thread Grisha Levit
A use-after-free happens in expand_string_dollar_quote if noexpand_translation is enabled and a string's translation is the same length as the string itself. --- diff --git a/subst.c b/subst.c index 08d9285e..a7a386d4 100644 --- a/subst.c +++ b/subst.c @@ -4231,12 +4231,17 @@ expand_string_dollar_q