Mercurial > vim
view src/typemap @ 13148:f06a0a75d5b1 v8.0.1448
patch 8.0.1448: segfault with exception inside :rubyfile command
commit https://github.com/vim/vim/commit/37badc898b8d167e11553b6d05908ffd35928a6e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 20:15:30 2018 +0100
patch 8.0.1448: segfault with exception inside :rubyfile command
Problem: Segmentation fault when Ruby throws an exception inside :rubyfile
command.
Solution: Use rb_protect() instead of rb_load_protect(). (ujihisa,
closes #2147, greywolf, closes #2512, #2511)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 20:30:06 +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}\")