annotate src/typemap @ 27382:123b0747fa10
v8.2.4219
patch 8.2.4219: reading before the start of the line
Commit: https://github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 25 21:26:17 2022 +0000
patch 8.2.4219: reading before the start of the line
Problem: Reading before the start of the line.
Solution: Check boundary before trying to read the character.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Tue, 25 Jan 2022 22:30:03 +0100 |
parents |
dec4338a7da2 |
children |
|
rev |
line source |
7
|
1 TYPEMAP
|
|
2 VIWIN T_VIOBJNOMUNGE
|
|
3 VIBUF T_VIOBJNOMUNGE
|
|
4
|
|
5 INPUT
|
|
6 T_VIOBJNOMUNGE
|
|
7 if (sv_isa($arg, \"${ntype}\")) {
|
|
8 IV tmp = SvIV((SV*)SvRV($arg));
|
3344
|
9 $var = INT2PTR($type, tmp);
|
7
|
10 if (!tmp)
|
|
11 croak(\"$ntype no longer exists\");
|
|
12 }
|
|
13 else
|
|
14 croak(\"$var is not of type ${ntype}\")
|