# HG changeset patch # User Bram Moolenaar # Date 1366801841 -7200 # Node ID 4281875776fb2c3127d08a03c3600b58353c9796 # Parent 8eee7f05d0c3d14c6f18d41975f90ced7468bbdc 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 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -738,6 +738,8 @@ pymap_to_tv(PyObject *obj, typval_T *tv, 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 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 908, +/**/ 907, /**/ 906,