view src/typemap @ 30302:6a1ed021a0c0 v9.0.0487

patch 9.0.0487: using freed memory with combination of closures Commit: https://github.com/vim/vim/commit/acd6b9976bd939035025a16ceb4213a680827927 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 17 16:27:39 2022 +0100 patch 9.0.0487: using freed memory with combination of closures Problem: Using freed memory with combination of closures. Solution: Do not use a partial after it has been freed through the funcstack.
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Sep 2022 17:30: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}\")