# HG changeset patch # User Christian Brabandt # Date 1518357606 -3600 # Node ID fc33325c91c1a5bb743031f38f90a1d6466322f9 # Parent 75a0fef55558459bf957d98b7d66c3cd662826ae patch 8.0.1499: out-of-memory situation not correctly handled commit https://github.com/vim/vim/commit/4b7e7bed6cb16c8256e6973418701cfb15b30b8e Author: Bram Moolenaar Date: Sun Feb 11 14:53:30 2018 +0100 patch 8.0.1499: 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/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -3153,6 +3153,8 @@ f_term_scrape(typval_T *argvars, typval_ bg = cell.bg; } dcell = dict_alloc(); + if (dcell == NULL) + break; list_append_dict(l, dcell); dict_add_nr_str(dcell, "chars", 0, mbs); 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 */ /**/ + 1499, +/**/ 1498, /**/ 1497,