Patch 8.1.1022
Problem:    May use NULL pointer when out of memory. (Coverity)
Solution:   Check for blob_alloc() returning NULL.
Files:      src/blob.c


*** ../vim-8.1.1021/src/blob.c  2019-01-24 12:31:40.752926550 +0100
--- src/blob.c  2019-03-19 22:52:20.432751553 +0100
***************
*** 232,237 ****
--- 232,239 ----
      blob_T  *blob = blob_alloc();
      char_u  *s = str;
  
+     if (blob == NULL)
+       return NULL;
      if (s[0] != '0' || (s[1] != 'z' && s[1] != 'Z'))
        goto failed;
      s += 2;
*** ../vim-8.1.1021/src/version.c       2019-03-19 22:22:51.807819390 +0100
--- src/version.c       2019-03-19 22:52:59.520428452 +0100
***************
*** 781,782 ****
--- 781,784 ----
  {   /* Add new patch number below this line */
+ /**/
+     1022,
  /**/

-- 
>From "know your smileys":
 :q     vi user saying, "How do I get out of this damn emacs editor?"

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui