0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.159

Problem:    Using uninitialized pointer when out of memory.
Solution:   Check for NULL return value.
This commit is contained in:
Bram Moolenaar
2011-04-11 14:29:17 +02:00
parent 4aa97427be
commit 0d35e91abf
2 changed files with 3 additions and 1 deletions

View File

@@ -4129,7 +4129,7 @@ iconv_string(vcp, str, slen, unconvlenp, resultlenp)
done = to - (char *)result;
}
if (resultlenp != NULL)
if (resultlenp != NULL && result != NULL)
*resultlenp = (int)(to - (char *)result);
return result;
}

View File

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