Re: vim crash when refer result via systemlist()

2014-04-09 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > systemlist() that added on 7.4.248 make incorrect reference of list. > > Below is a patch. Please check and include. Thanks! -- I started out with nothing, and I still have most of it. -- Michael Davis -- "Tonight Show" /// Bram M

Re: vim crash when refer result via systemlist()

2014-04-09 Fir de Conversatie mattn
STRCPY/STRNCPY doesn't copy bytes after 0x00. diff -r dd44a527c2bd src/eval.c --- a/src/eval.cSun Apr 06 21:34:04 2014 +0200 +++ b/src/eval.cWed Apr 09 19:53:47 2014 +0900 @@ -18319,7 +18319,7 @@ char_u *s = NULL; char_u *start; char_u

Re: vim crash when refer result via systemlist()

2014-04-09 Fir de Conversatie mattn
Ah, sorry I was confused. But this contains a bug. I'll write a patch soon. -- -- 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 --- You received this messag

Re: vim crash when refer result via systemlist()

2014-04-09 Fir de Conversatie mattn
Ah, it seems systemlist() is broken. Handle NUL instead of NL. diff -r dd44a527c2bd src/eval.c --- a/src/eval.cSun Apr 06 21:34:04 2014 +0200 +++ b/src/eval.cWed Apr 09 19:19:50 2014 +0900 @@ -18334,17 +18334,13 @@ for (i = 0; i < len; ++i) { start = res

vim crash when refer result via systemlist()

2014-04-09 Fir de Conversatie mattn
systemlist() that added on 7.4.248 make incorrect reference of list. Below is a patch. Please check and include. diff -r dd44a527c2bd src/eval.c --- a/src/eval.cSun Apr 06 21:34:04 2014 +0200 +++ b/src/eval.cWed Apr 09 19:05:42 2014 +0900 @@ -18356,6 +18356,7 @@ list_a