Re: [PATCH] builtin: Fix argv overrun in aexpr and oexpr

Herbert Xu <[email protected]> Thu, 28 Aug 2025 17:13:34 +0800
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
On Thu, Aug 28, 2025 at 10:12:05AM +0100, Harald van Dijk wrote:
>
> 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.

It is what NetBSD does, which is where this code came from.

Cheers,
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt