Patch 7.4.1747
Problem:    Coverity: missing check for NULL pointer.
Solution:   Check for out of memory.
Files:      src/if_py_both.h


*** ../vim-7.4.1746/src/if_py_both.h    2016-04-15 20:40:37.871202908 +0200
--- src/if_py_both.h    2016-04-15 21:42:47.931364199 +0200
***************
*** 2922,2927 ****
--- 2922,2934 ----
            if (argc != 0)
            {
                argv = PyMem_New(typval_T, (size_t) argc);
+               if (argv == NULL)
+               {
+                   PyErr_NoMemory();
+                   dict_unref(selfdict);
+                   list_unref(argslist);
+                   return NULL;
+               }
                curtv = argv;
                for (li = argslist->lv_first; li != NULL; li = li->li_next)
                    copy_tv(&li->li_tv, curtv++);
*** ../vim-7.4.1746/src/version.c       2016-04-15 21:16:07.780407822 +0200
--- src/version.c       2016-04-15 21:43:22.127000691 +0200
***************
*** 750,751 ****
--- 750,753 ----
  {   /* Add new patch number below this line */
+ /**/
+     1747,
  /**/

-- 
DINGO:   And after the spanking ... the oral sex.
GALAHAD: Oh, dear! Well, I...
GIRLS:   The oral sex ...  The oral sex.
GALAHAD: Well, I suppose I could stay a BIT longer.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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