0
0
mirror of https://github.com/vim/vim.git synced 2025-09-17 02:48:10 -04:00

patch 7.4.1471

Problem:    Missing out-of-memory check.  And Coverity warning.
Solution:   Bail out when msg is NULL.
This commit is contained in:
Bram Moolenaar 2016-03-02 21:16:59 +01:00
parent 289a90551d
commit bf73b91c66
2 changed files with 5 additions and 0 deletions

View File

@ -1516,6 +1516,9 @@ may_invoke_callback(channel_T *channel, int part)
* get everything we have. */
msg = channel_get_all(channel, part);
if (msg == NULL)
return FALSE; /* out of memory (and avoids Coverity warning) */
argv[1].v_type = VAR_STRING;
argv[1].vval.v_string = msg;
}

View File

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