On Mon, Mar 14, 2011 at 06:29:27AM +0000, Jonathan Nieder wrote:
> When tracing (with the DEBUG compile-time option set to 1 or 2),
> exverror calls TRACEV to print its arguments before passing them on.
> So the arguments are consumed by the time exvwarning looks for them,
> resulting in a segfault:
>  $ sh -c '"'
>  sh: Syntax error: Unterminated quoted string
>  $ sh -o debug -c '"'
>  sh: Segmentation fault (core dumped)
> Make a copy with va_copy to avoid this.
> Signed-off-by: Jonathan Nieder <jrnie...@gmail.com>

Also applied.
Email: Herbert Xu <herb...@gondor.apana.org.au>
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to