[bug #66154] documentation bug about "$?"

2024-08-31 Thread 谢骐
URL: Summary: documentation bug about "$?" Group: The GNU Bourne-Again SHell Submitter: shynur Submitted: Sun 01 Sep 2024 04:24:03 AM CST Category: None Severi

Feature request: process title with exec -a "" for oneself

2024-08-31 Thread Lockywolf
Dear Bash developers, May I ask for a small feature to be added to bash? At the moment exec changes IO redirections for the newly started processes, but if there is no command for exec'ing, it changes those redirections for the bash process itself. The exec -a, however, allows setting the curren

Re: [PATCH 1/2] printf: fix heap buffer overflow in printf_builtin

2024-08-31 Thread Chet Ramey
On 8/29/24 10:21 AM, Andrey Kovalev wrote: In the loop, when iterating through the array, there was no check whether an element of the array goes beyond its limits. And with certain input data, there is an outflow from the array. Thanks for the report. -- ``The lyf so short, the craft so long

Re: [PATCH 1/2] printf: fix heap buffer overflow in printf_builtin

2024-08-31 Thread Chet Ramey
On 8/30/24 10:41 AM, Martin D Kealey wrote: Hi Andrei Ok, I see the problem. This fault is triggered when the format string has '%(' but is missing the closing ')' - so the entire remainder of the format string is tentatively recorded as the time-format substring. Yes. This line: if (

Re: [PATCH 2/2] printf: fix heap buffer overflow in bexpand

2024-08-31 Thread Chet Ramey
On 8/29/24 10:22 AM, Andrey Kovalev wrote: In the loop, when iterating through the array, there was no check whether an element of the array goes beyond its limits. And with certain input data, there is an outflow from the array. Thanks for the report. This was fixed back in May, 2023, the resu