Mercurial > vim
annotate .hgignore @ 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 | 7aeaf20e2ba5 |
children | 6e66a52748d0 |
rev | line source |
---|---|
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 syntax: glob |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 # Unixen: object and executable files. |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 *.o |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 src/vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 src/xxd/xxd |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 src/auto/if_perl.c |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 src/auto/gui_gtk_gresources.c |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 src/auto/gui_gtk_gresources.h |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
10 src/auto/os_haiku.rdef |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 src/objects/.dirstamp |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 src/objects |
19093
af70e0c2b3cd
patch 8.2.0107: hgignore is out of sync from gitignore
Bram Moolenaar <Bram@vim.org>
parents:
17157
diff
changeset
|
13 src/types.vim |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 # We do need src/auto/configure. |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 src/auto/config.cache |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 src/auto/config.h |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 src/auto/config.log |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 src/auto/config.mk |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
20 src/auto/config.status |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
21 src/auto/osdef.h |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 src/auto/link.log |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 src/auto/link.sed |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 src/auto/pathdef.c |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
25 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
26 # Windows |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
27 *.exe |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
28 *.idb |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
29 *.exp |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
30 *.map |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
31 *.obj |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
32 *.pdb |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
33 *.ilk |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
34 *.sln |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 *.suo |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
36 *.res |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
37 *.RES |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 vim*.dll |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
39 vim*.lib |
17157
bbd454d155a9
patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents:
16606
diff
changeset
|
40 src/dobj*/pathdef.c |
bbd454d155a9
patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents:
16606
diff
changeset
|
41 src/gobj*/pathdef.c |
bbd454d155a9
patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents:
16606
diff
changeset
|
42 src/obj*/pathdef.c |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
43 src/Obj*/pathdef.c |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
44 gvimext.dll |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
45 gvimext.lib |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
46 gvim.lib |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
47 runtime/doc/uganda.nsis.txt |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
48 nsis/icons/* |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
49 /vim90/ |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
50 .vscode/ |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
51 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
52 # NetBeans |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
53 nbproject/* |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
54 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
55 # Mac OSX |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
56 src/xxd/xxd.dSYM |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
57 .DS_Store |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
58 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
59 # All platforms |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
60 *.rej |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
61 *.orig |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
62 *.mo |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
63 *.swp |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
64 *~ |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
65 *.pyc |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
66 *.log |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
67 src/po/vim.pot |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
68 src/tags |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
69 /tags |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
70 /GPATH |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
71 /GTAGS |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
72 /GRTAGS |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
73 nsis/tags |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
74 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
75 # Generated by "make test" |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
76 src/po/*.ck |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
77 src/po/*.desktop |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
78 src/testdir/mbyte.vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
79 src/testdir/mzscheme.vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
80 src/testdir/lua.vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
81 src/testdir/small.vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
82 src/testdir/tiny.vim |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
83 src/testdir/test*.out |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
84 src/testdir/test*.failed |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
85 src/testdir/test.log |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
86 src/testdir/dostmp/* |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
87 src/testdir/messages |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
88 src/testdir/viminfo |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
89 src/testdir/opt_test.vim |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
90 src/testdir/failed |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
91 src/testdir/starttime |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
92 runtime/indent/testdir/*.out |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
93 runtime/indent/testdir/*.fail |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
94 src/memfile_test |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
95 src/json_test |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
96 src/message_test |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
97 src/kword_test |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
98 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
99 # Generated by "make install" |
19093
af70e0c2b3cd
patch 8.2.0107: hgignore is out of sync from gitignore
Bram Moolenaar <Bram@vim.org>
parents:
17157
diff
changeset
|
100 runtime/doc/doctags |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
101 |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
102 # Generated by "make shadow". The directory names could be anything but we |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
103 # restrict them to shadow (the default) or shadow-* |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
104 src/shadow |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
105 src/shadow-* |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
106 src/runtime |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
107 src/pixmaps |
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
108 |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
109 # other files possibly created by tools |
16574
cabfcd0f8012
patch 8.1.1290: .hgignore and .gitignore are either distributed or in git
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
110 src/cscope.out |
32041
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
111 |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
112 # Linter/language server files |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
113 /.cache/clangd/ |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
114 /.ccls-cache/ |
7aeaf20e2ba5
patch 9.0.1352: "ignore" files are outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
115 /compile_commands.json |