Mercurial > vim
view src/typemap @ 10559:4d8be28b5913 v8.0.0169
patch 8.0.0169: json_decode() may run out of stack space
commit https://github.com/vim/vim/commit/8b2f19536ff979046f0d241850f4176a1ce4bca9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 10 19:44:18 2017 +0100
patch 8.0.0169: json_decode() may run out of stack space
Problem: For complicated string json_decode() may run out of stack space.
Solution: Change the recursive solution into an iterative solution.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Jan 2017 19:45:03 +0100 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")