To: vim_dev@googlegroups.com Subject: Patch 7.4.1747 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1747 Problem: Coverity: missing check for NULL pointer. Solution: Check for out of memory. Files: src/if_py_both.h *** ../vim-7.4.1746/src/if_py_both.h 2016-04-15 20:40:37.871202908 +0200 --- src/if_py_both.h 2016-04-15 21:42:47.931364199 +0200 *************** *** 2922,2927 **** --- 2922,2934 ---- if (argc != 0) { argv = PyMem_New(typval_T, (size_t) argc); + if (argv == NULL) + { + PyErr_NoMemory(); + dict_unref(selfdict); + list_unref(argslist); + return NULL; + } curtv = argv; for (li = argslist->lv_first; li != NULL; li = li->li_next) copy_tv(&li->li_tv, curtv++); *** ../vim-7.4.1746/src/version.c 2016-04-15 21:16:07.780407822 +0200 --- src/version.c 2016-04-15 21:43:22.127000691 +0200 *************** *** 750,751 **** --- 750,753 ---- { /* Add new patch number below this line */ + /**/ + 1747, /**/ -- DINGO: And after the spanking ... the oral sex. GALAHAD: Oh, dear! Well, I... GIRLS: The oral sex ... The oral sex. GALAHAD: Well, I suppose I could stay a BIT longer. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///