# HG changeset patch # User Christian Brabandt # Date 1472222707 -7200 # Node ID 45098d7f72b6802624f4503f3535adf272c473f3 # Parent e889e8350bf357979918e914084cd4d98eaa00fd commit https://github.com/vim/vim/commit/9f28953f0c1e3d9fffd49af76503f54eaa279acb Author: Bram Moolenaar Date: Fri Aug 26 16:39:03 2016 +0200 patch 7.4.2257 Problem: Coverity complains about not checking for NULL. Solution: Check for out of memory. diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -3009,9 +3009,9 @@ FunctionAttr(FunctionObject *self, char return PyString_FromString((char *)(self->name)); else if (strcmp(name, "args") == 0) { - if (self->argv == NULL) + if (self->argv == NULL || (list = list_alloc()) == 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2257, +/**/ 2256, /**/ 2255,