To: vim_dev@googlegroups.com Subject: Patch 8.0.1501 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1501 Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value. Files: src/ops.c *** ../vim-8.0.1500/src/ops.c 2018-02-10 18:45:21.072822129 +0100 --- src/ops.c 2018-02-11 15:05:44.888390654 +0100 *************** *** 1668,1673 **** --- 1668,1675 ---- v_event = get_vim_var_dict(VV_EVENT); list = list_alloc(); + if (list == NULL) + return; for (n = 0; n < reg->y_size; n++) list_append_string(list, reg->y_array[n], -1); list->lv_lock = VAR_FIXED; *** ../vim-8.0.1500/src/version.c 2018-02-11 15:02:44.045572745 +0100 --- src/version.c 2018-02-11 15:06:07.696242088 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1501, /**/ -- The question is: What do you do with your life? The wrong answer is: Become the richest guy in the graveyard. (billionaire and Oracle founder Larry Ellison) /// 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 ///