commit | 7a26dd860a1c666233574edc1b96f721f214067f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 13:10:41 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 13:10:41 2013 +0200 |
tree | 81004ad0a9446d0a6b7427ac12d0fb24d7ac289c | |
parent | af6abb9d93959d801d40a2d77a96962cef2335fc [diff] [blame] |
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 index cd80800..2739f66 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -738,6 +738,8 @@ tv->vval.v_dict = d; list = PyMapping_Items(obj); + if (list == NULL) + return -1; lsize = PyList_Size(list); while (lsize--) {