]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.908 v7.3.908
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Apr 2013 11:10:41 +0000 (13:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Apr 2013 11:10:41 +0000 (13:10 +0200)
Problem:    Possible crash when using a list in Python.
Solution:   Return early if the list is NULL. (ZyX)

src/if_py_both.h
src/version.c

index cd80800415138a2f60d6c6c57fda013e583c601e..2739f6660bd12076a3b7c9fa6b2dc436bf84f227 100644 (file)
@@ -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--)
     {
index 1aeeb5621aca5764e51cdcc4f457eb3d83702499..4e0a6a1b57237ac03375b6f86e845424e784e758 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    908,
 /**/
     907,
 /**/