From: Bram Moolenaar Date: Wed, 24 Apr 2013 11:10:41 +0000 (+0200) Subject: updated for version 7.3.908 X-Git-Tag: v7.3.908 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a26dd860a1c666233574edc1b96f721f214067f;p=thirdparty%2Fvim.git updated for version 7.3.908 Problem: Possible crash when using a list in Python. Solution: Return early if the list is NULL. (ZyX) --- diff --git a/src/if_py_both.h b/src/if_py_both.h index cd80800415..2739f6660b 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -738,6 +738,8 @@ pymap_to_tv(PyObject *obj, typval_T *tv, PyObject *lookupDict) tv->vval.v_dict = d; list = PyMapping_Items(obj); + if (list == NULL) + return -1; lsize = PyList_Size(list); while (lsize--) { diff --git a/src/version.c b/src/version.c index 1aeeb5621a..4e0a6a1b57 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 908, /**/ 907, /**/