Re: [PATCH] builtin: Fix argv overrun in aexpr and oexpr
Harald van Dijk <[email protected]> Thu, 28 Aug 2025 10:12:05 +0100
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On 28/08/2025 08:36, Herbert Xu wrote: > Aleksander Ushakov <[email protected]> wrote: >> >> I think I fixed the problem here: > > Thanks for the report. I think the following patch should fix > it too: This patch fixes the buffer overrun but leaves the syntax error in the expression undetected, which is inconsistent with how dash treats other syntax errors in expressions, and inconsistent with how other shells treat missing operands to -a and -o. Cheers, Harald van Dijk