forked from aniani/vim
patch 8.0.1602: crash in parsing JSON
Problem: Crash in parsing JSON. Solution: Fail when using array or dict as dict key. (Damien)
This commit is contained in:
@@ -179,6 +179,9 @@ func Test_json_decode()
|
||||
call assert_fails('call json_decode("[1 2]")', "E474:")
|
||||
|
||||
call assert_fails('call json_decode("[1,,2]")', "E474:")
|
||||
|
||||
call assert_fails('call json_decode("{{}:42}")', "E474:")
|
||||
call assert_fails('call json_decode("{[]:42}")', "E474:")
|
||||
endfunc
|
||||
|
||||
let s:jsl5 = '[7,,,]'
|
||||
|
Reference in New Issue
Block a user