mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
msgpack_rpc: Also make msgpack_from_*/msgpack_to_* functions not recur
This removes some stack overflows in new test regarding deeply nested variables. Now in place of crashing vim_to_object/msgpack_rpc_from_object/etc it crashes clear_tv with stack overflow.
This commit is contained in:
@@ -40,7 +40,7 @@ describe('notify', function()
|
||||
|
||||
it('does not crash for deeply nested variable', function()
|
||||
meths.set_var('l', {})
|
||||
local nest_level = 100000
|
||||
local nest_level = 1000
|
||||
meths.command(('call map(range(%u), "extend(g:, {\'l\': [g:l]})")'):format(nest_level))
|
||||
local ret = {}
|
||||
for i = 1, nest_level do
|
||||
|
Reference in New Issue
Block a user