view src/typemap @ 19914:6babfd2d15e9 v8.2.0513

patch 8.2.0513: reading past allocate memory when using varargs Commit: https://github.com/vim/vim/commit/5d905c2b9612314f6d8616560800665056050adc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 5 18:20:45 2020 +0200 patch 8.2.0513: reading past allocate memory when using varargs Problem: Reading past allocate memory when using varargs. Solution: Fix copying function argument types.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Apr 2020 18:30:36 +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}\")