Patch 8.2.1265

2 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 21, 2020, 4:26:27 PM7/21/20
to vim...@googlegroups.com

Patch 8.2.1265
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
Files: src/evalfunc.c


*** ../vim-8.2.1264/src/evalfunc.c 2020-07-18 22:24:18.630245010 +0200
--- src/evalfunc.c 2020-07-21 22:22:49.423726592 +0200
***************
*** 7859,7867 ****
pat = (char_u *)"[\\x01- ]\\+";

if (rettv_list_alloc(rettv) == FAIL)
! return;
if (typeerr)
! return;

regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
if (regmatch.regprog != NULL)
--- 7859,7867 ----
pat = (char_u *)"[\\x01- ]\\+";

if (rettv_list_alloc(rettv) == FAIL)
! goto theend;
if (typeerr)
! goto theend;

regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
if (regmatch.regprog != NULL)
***************
*** 7898,7903 ****
--- 7898,7904 ----
vim_regfree(regmatch.regprog);
}

+ theend:
p_cpo = save_cpo;
}

*** ../vim-8.2.1264/src/version.c 2020-07-21 21:48:55.259727439 +0200
--- src/version.c 2020-07-21 22:23:42.391541183 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1265,
/**/

--
"I simultaneously try to keep my head in the clouds and my feet on the
ground. Sometimes it's a stretch, though." -- Larry Wall

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages