view src/typemap @ 29536:6d93f09815c1 v9.0.0109

patch 9.0.0109: writing over the end of a buffer on stack Commit: https://github.com/vim/vim/commit/1eead4cf1daf87ee41aeb4de3b3e38708417f9d5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 30 11:39:57 2022 +0100 patch 9.0.0109: writing over the end of a buffer on stack Problem: Writing over the end of a buffer on stack when making list of spell suggestions. Solution: Make sure suggested word is not too long. (closes #10812)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Jul 2022 12:45:02 +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}\")