Mercurial > vim
view src/typemap @ 17696:03dcb660c4e8 v8.1.1845
patch 8.1.1845: may use NULL pointer when running out of memory
commit https://github.com/vim/vim/commit/6ace95e9810bdfef5392ad89efc9e4ad4606de28
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 13 23:09:49 2019 +0200
patch 8.1.1845: may use NULL pointer when running out of memory
Problem: May use NULL pointer when running out of memory.
Solution: Do not clear popup buffers when NULL. (closes https://github.com/vim/vim/issues/4802)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Aug 2019 23:15:05 +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}\")