0
0
mirror of https://github.com/vim/vim.git synced 2025-09-15 23:23:38 -04:00

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.
This commit is contained in:
Bram Moolenaar 2018-02-11 14:53:30 +01:00
parent a7e18d237f
commit 4b7e7bed6c
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1499,
/**/
1498,
/**/