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 cd7d753573
commit d293d3e224
2 changed files with 3 additions and 1 deletions
+1 -1
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;
}
+2
View File
@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
159,
/**/
158,
/**/