From: Bram Moolenaar Date: Wed, 2 Mar 2016 20:16:59 +0000 (+0100) Subject: patch 7.4.1471 X-Git-Tag: v7.4.1471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf73b91c664488ca57e2b4a8eb9b1f36f6625bc7;p=thirdparty%2Fvim.git patch 7.4.1471 Problem: Missing out-of-memory check. And Coverity warning. Solution: Bail out when msg is NULL. --- diff --git a/src/channel.c b/src/channel.c index 824da8a7d1..f9cfa853fe 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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; } diff --git a/src/version.c b/src/version.c index 66a86fb630..234ff56b58 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1471, /**/ 1470, /**/