On Saturday, April 14, 2012 4:36:29 PM UTC+2, Christian Brabandt wrote:
> Hi Thomas!
> [...]
> diff --git a/src/if_py_both.h b/src/if_py_both.h
> --- a/src/if_py_both.h
> +++ b/src/if_py_both.h
> @@ -74,7 +74,7 @@
>      char *str = NULL;
>      int error = ((OutputObject *)(self))->error;
>  
> -    if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len))
> +    if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len) || str == NUL)
>         return NULL;
>  
>      Py_BEGIN_ALLOW_THREADS

Thanx for this patch.
This works for me both on ubuntu and on debian, and now vim stopped to crash 
with sigsegv.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui