Re: [PATCH v2] [DEBUG] Use va_copy when reusing a va_list

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

 



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 <jrnieder@xxxxxxxxx>

Also applied.
-- 
Email: Herbert Xu <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