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:
parent
a7e18d237f
commit
4b7e7bed6c
@ -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);
|
||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1499,
|
||||
/**/
|
||||
1498,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user