Mercurial > vim
view src/typemap @ 22553:3ed3bed38e0f v8.2.1825
patch 8.2.1825: Vim9: accessing freed memory
Commit: https://github.com/vim/vim/commit/d747548c664815bb6e8520afa90b6108e1997591
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 10 20:31:37 2020 +0200
patch 8.2.1825: Vim9: accessing freed memory
Problem: Vim9: accessing freed memory.
Solution: Clear sv_name when the variable is deleted.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Oct 2020 20:45:04 +0200 |
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}\")