Patch 7.4.2257
Problem: Coverity complains about not checking for NULL.
Solution: Check for out of memory.
Files: src/if_py_both.h
*** ../vim-7.4.2256/src/if_py_both.h 2016-08-01 16:27:19.701352907 +0200
--- src/if_py_both.h 2016-08-26 16:32:10.487620127 +0200
***************
*** 3009,3017 ****
return PyString_FromString((char *)(self->name));
else if (strcmp(name, "args") == 0)
{
! if (self->argv == NULL)
return AlwaysNone(NULL);
! list = list_alloc();
for (i = 0; i < self->argc; ++i)
list_append_tv(list, &self->argv[i]);
return NEW_LIST(list);
--- 3009,3017 ----
return PyString_FromString((char *)(self->name));
else if (strcmp(name, "args") == 0)
{
! if (self->argv == NULL || (list = list_alloc()) == NULL)
return AlwaysNone(NULL);
!
for (i = 0; i < self->argc; ++i)
list_append_tv(list, &self->argv[i]);
return NEW_LIST(list);
*** ../vim-7.4.2256/src/version.c 2016-08-26 16:29:44.800892431 +0200
--- src/version.c 2016-08-26 16:37:43.536622966 +0200
***************
*** 765,766 ****
--- 765,768 ----
{ /* Add new patch number below this line */
+ /**/
+ 2257,
/**/
--
hundred-and-one symptoms of being an internet addict:
89. In addition to your e-mail address being on your business
cards you even have your own domain.
/// 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.