0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.908

Problem:    Possible crash when using a list in Python.
Solution:   Return early if the list is NULL. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-04-24 13:10:41 +02:00
parent af6abb9d93
commit 7a26dd860a
2 changed files with 4 additions and 0 deletions

View 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--)
{