Re: [PATCH] [EVAL] fix parse_command_args to reliably parse --

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 28, 2010 at 10:11:43PM +0200, Gerrit Pape wrote:
> parse_command_args() returning a **argv pointer with *argv == 0 makes
> dash segfault in find_command().  To reproduce run
> 
>  dash -c 'command --'
> 
> With this commit, parse_command_args() returns 0 if *argv is null after
> parsing --, and so fixes the subsequent segfault.
> 
> Reported by Jonny through http://bugs.debian.org/579543
> 
> Signed-off-by: Gerrit Pape <pape@xxxxxxxxxxx>

Patch applied.  Thanks Gerrit!
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux