forked from aniani/vim
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;
|
tv->vval.v_dict = d;
|
||||||
|
|
||||||
list = PyMapping_Items(obj);
|
list = PyMapping_Items(obj);
|
||||||
|
if (list == NULL)
|
||||||
|
return -1;
|
||||||
lsize = PyList_Size(list);
|
lsize = PyList_Size(list);
|
||||||
while (lsize--)
|
while (lsize--)
|
||||||
{
|
{
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
908,
|
||||||
/**/
|
/**/
|
||||||
907,
|
907,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user