mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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)
|
||||
|
Reference in New Issue
Block a user