Patch 8.1.2147
Problem:    Crash when allocating memory fails. (Zu-Ming Jiang)
Solution:   Check that 'spellcapcheck' is not NULL. (closes #5048)
Files:      src/spell.c


*** ../vim-8.1.2146/src/spell.c 2019-10-06 22:00:08.301244080 +0200
--- src/spell.c 2019-10-13 19:46:54.379157106 +0200
***************
*** 4367,4373 ****
      regprog_T   *rp = synblock->b_cap_prog;
      char_u    *re;
  
!     if (*synblock->b_p_spc == NUL)
        synblock->b_cap_prog = NULL;
      else
      {
--- 4367,4373 ----
      regprog_T   *rp = synblock->b_cap_prog;
      char_u    *re;
  
!     if (synblock->b_p_spc == NULL || *synblock->b_p_spc == NUL)
        synblock->b_cap_prog = NULL;
      else
      {
*** ../vim-8.1.2146/src/version.c       2019-10-13 16:59:05.157027519 +0200
--- src/version.c       2019-10-13 19:49:08.510608462 +0200
***************
*** 755,756 ****
--- 755,758 ----
  {   /* Add new patch number below this line */
+ /**/
+     2147,
  /**/

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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 message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201910131750.x9DHoQo5011849%40masaka.moolenaar.net.

Raspunde prin e-mail lui