mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 7.4.1446
Problem: Crash when using json_decode(). Solution: Terminate string with a NUL byte.
This commit is contained in:
@@ -659,6 +659,7 @@ json_decode_string(js_read_T *reader, typval_T *res)
|
||||
++reader->js_used;
|
||||
if (res != NULL)
|
||||
{
|
||||
ga_append(&ga, NUL);
|
||||
res->v_type = VAR_STRING;
|
||||
#if defined(FEAT_MBYTE) && defined(USE_ICONV)
|
||||
if (!enc_utf8)
|
||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1446,
|
||||
/**/
|
||||
1445,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user