annotate runtime/keymap/hebrew_cp1255.vim @ 33776:9503dc55b5ed v9.0.2108

patch 9.0.2108: [security]: overflow with count for :s command Commit: https://github.com/vim/vim/commit/ac63787734fda2e294e477af52b3bd601517fa78 Author: Christian Brabandt <cb@256bit.org> Date: Tue Nov 14 20:45:48 2023 +0100 patch 9.0.2108: [security]: overflow with count for :s command Problem: [security]: overflow with count for :s command Solution: Abort the :s command if the count is too large If the count after the :s command is larger than what fits into a (signed) long variable, abort with e_value_too_large. Adds a test with INT_MAX as count and verify it correctly fails. It seems the return value on Windows using mingw compiler wraps around, so the initial test using :s/./b/9999999999999999999999999990 doesn't fail there, since the count is wrapping around several times and finally is no longer larger than 2147483647. So let's just use 2147483647 in the test, which hopefully will always cause a failure Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Nov 2023 22:15:10 +0100
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " add in the vowel points, known as 'niqud', which are present in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " CP1255: Note: there are several 'standards' for placement of the vowel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " points, and I ignored all of them. Since we can input English by simply
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " pressing Ctrl-^ and eliminating this map, I saw no reason to try to use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " exotic key locations. If you don't like it, that's just too bad :-)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 let b:keymap_name = "heb"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 loadkeymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 a <char-249> " ש - shin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 b <char-240> " נ - nun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 c <char-225> " ב - bet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 d <char-226> " ג - gimel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 e <char-247> " ק - qof
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 f <char-235> " כ - kaf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 g <char-242> " ע - ayin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 h <char-233> " י - yod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 i <char-239> " ן - final nun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 j <char-231> " ח - het
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 k <char-236> " ל - lamed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 l <char-234> " ך - final kaf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 m <char-246> " צ - tsadi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 n <char-238> " מ - mem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 o <char-237> " ם - final mem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 p <char-244> " פ - pe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 q / " / - slash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 r <char-248> " ר - resh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 s <char-227> " ד - dalet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 t <char-224> " א - alef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 u <char-229> " ו - vav
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 v <char-228> " ה - he
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 w ' " ' - single-quote
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 x <char-241> " ס - samekh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 y <char-232> " ט - tet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 z <char-230> " ז - zayin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 , <char-250> " ת - tav
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 . <char-245> " ץ - final tsadi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 ; <char-243> " ף - final pe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 ' , " , - comma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 / . " . - period
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 ` ; " ; - semicolon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " vowels:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 A: <Char-192> " sheva
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HE <Char-193> " hataf segol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HA <Char-194> " hataf patah
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HO <Char-195> " hataf qamats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 I <Char-196> " hiriq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 AY <Char-197> " tsere
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 E <Char-198> " segol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 AA <Char-199> " patah
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 AO <Char-200> " qamats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 O <Char-201> " holam
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 U <Char-203> " qubuts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 D <Char-204> " dagesh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 ]T <Char-205> " meteg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 ]Q <Char-206> " maqaf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 ]R <ּChar-207> " rafe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 ]p <Char-208> " paseq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 SR <Char-209> " shin-dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 SL <Char-210> " sin-dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 ]P <Char-211> " sof-pasuq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 VV <Char-212> " double-vav
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 VY <Char-213> " vav-yod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 YY <Char-214> " yod-yod