From: Bram Moolenaar Date: Fri, 15 Apr 2016 19:47:54 +0000 (+0200) Subject: patch 7.4.1747 X-Git-Tag: v7.4.1747 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe4b18640656ddea41f60cf7a76956c9cc5494d6;p=vim patch 7.4.1747 Problem: Coverity: missing check for NULL pointer. Solution: Check for out of memory. --- diff --git a/src/if_py_both.h b/src/if_py_both.h index c6a8c4463..de3e8680b 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -2922,6 +2922,13 @@ FunctionConstructor(PyTypeObject *subtype, PyObject *args, PyObject *kwargs) 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++); diff --git a/src/version.c b/src/version.c index 74e5f9235..d7544b830 100644 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1747, /**/ 1746, /**/