# HG changeset patch # User Christian Brabandt # Date 1518358506 -3600 # Node ID 88cc06dc1a5010c8eb511673a593756448f9f821 # Parent c921b8a4dca12d3281e9fab61d2bd93cc7520e82 patch 8.0.1501: out-of-memory situation not correctly handled commit https://github.com/vim/vim/commit/a0221df149aa3773450b3f930299a409dd75bd5b Author: Bram Moolenaar Date: Sun Feb 11 15:07:22 2018 +0100 patch 8.0.1501: out-of-memory situation not correctly handled Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value. diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -1668,6 +1668,8 @@ yank_do_autocmd(oparg_T *oap, yankreg_T 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1501, +/**/ 1500, /**/ 1499,