Mercurial > vim
view src/typemap @ 27416:0b3bf3cbe42f v8.2.4236
patch 8.2.4236: accessing freed memory
Commit: https://github.com/vim/vim/commit/166788c657f4b1090a31ea37a023b1f2c78790c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 27 21:56:40 2022 +0000
patch 8.2.4236: accessing freed memory
Problem: Accessing freed memory.
Solution: Set the bh_curr pointer to NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 27 Jan 2022 23:00: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}\")