From: Bram Moolenaar Date: Sun, 11 Feb 2018 13:53:30 +0000 (+0100) Subject: patch 8.0.1499: out-of-memory situation not correctly handled X-Git-Tag: v8.0.1499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b7e7bed6cb16c8256e6973418701cfb15b30b8e;p=vim 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 index b67cd6ceb..6b8d35394 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -3153,6 +3153,8 @@ f_term_scrape(typval_T *argvars, typval_T *rettv) 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 index 97d2390d2..a7cc0e41e 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1499, /**/ 1498, /**/