| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.908 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.908 |
| Problem: Possible crash when using a list in Python. |
| Solution: Return early if the list is NULL. (ZyX) |
| Files: src/if_py_both.h |
| |
| |
| |
| |
| |
| *** 738,743 **** |
| --- 738,745 ---- |
| tv->vval.v_dict = d; |
| |
| list = PyMapping_Items(obj); |
| + if (list == NULL) |
| + return -1; |
| lsize = PyList_Size(list); |
| while (lsize--) |
| { |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 908, |
| /**/ |
| |
| -- |
| How do I set the laser printer to stun? |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |