To: vim_dev@googlegroups.com Subject: Patch 8.0.1499 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1499 Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value. Files: src/terminal.c *** ../vim-8.0.1498/src/terminal.c 2018-02-10 18:45:21.096821957 +0100 --- src/terminal.c 2018-02-11 14:51:05.922268285 +0100 *************** *** 3153,3158 **** --- 3153,3160 ---- bg = cell.bg; } dcell = dict_alloc(); + if (dcell == NULL) + break; list_append_dict(l, dcell); dict_add_nr_str(dcell, "chars", 0, mbs); *** ../vim-8.0.1498/src/version.c 2018-02-11 14:29:45.376349139 +0100 --- src/version.c 2018-02-11 14:53:11.981395796 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1499, /**/ -- `When any government, or any church for that matter, undertakes to say to its subjects, "This you may not read, this you must not see, this you are forbidden to know," the end result is tyranny and oppression no matter how holy the motives' -- Robert A Heinlein, "If this goes on --" /// 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 ///