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:
@@ -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--)
|
||||
{
|
||||
|
Reference in New Issue
Block a user