neovim/runtime/doc
zeertzjq a4c111ae69 vim-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

ac63787734

Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-11-17 07:06:52 +08:00
..
api.txt feat(tui): support DCS responses in TermResponse event (#26061) 2023-11-16 11:12:42 -06:00
arabic.txt docs: remove trailing spaces #24455 2023-07-25 05:07:13 -07:00
autocmd.txt feat(tui): support DCS responses in TermResponse event (#26061) 2023-11-16 11:12:42 -06:00
builtin.txt vim-patch:8.2.4932: not easy to filter the output of maplist() 2023-11-09 21:34:04 +08:00
change.txt vim-patch:9.0.2108: [security]: overflow with count for :s command 2023-11-17 07:06:52 +08:00
channel.txt docs: small fixes (#25585) 2023-10-29 16:02:32 +08:00
cmdline.txt vim-patch:9.0.2108: [security]: overflow with count for :s command 2023-11-17 07:06:52 +08:00
debug.txt
deprecated.txt docs: deprecate the "term_background" UI field 2023-11-13 19:04:47 -06:00
dev_style.txt refactor: replace manual header guards with #pragma once 2023-11-12 22:01:28 +01:00
develop.txt docs: small fixes 2023-10-10 19:20:32 +02:00
diagnostic.txt fix(diagnostic): virtual_text prefix function should have index and total (#25801) 2023-10-27 08:17:46 -05:00
diff.txt vim-patch:partial:6f4754b9f725 2023-04-17 15:46:24 +08:00
digraph.txt vim-patch:9.0.2056: no digraph for quadruple prime 2023-10-20 13:03:36 +02:00
editing.txt feat: ignore swapfile for running Nvim processes #25336 2023-10-04 06:31:25 -07:00
editorconfig.txt docs: fix typos 2023-04-04 19:07:33 +02:00
eval.txt feat(tui): support DCS responses in TermResponse event (#26061) 2023-11-16 11:12:42 -06:00
filetype.txt vim-patch:ba77bbb5c775 2023-10-03 06:21:37 +08:00
fold.txt feat(folds): support virtual text format for 'foldtext' (#25209) 2023-09-17 20:29:18 +08:00
ft_ada.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
ft_ps1.txt
ft_raku.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
ft_rust.txt docs: small fixes (#25585) 2023-10-29 16:02:32 +08:00
ft_sql.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
gui.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
hebrew.txt feat(edit)!: remove old c implementation of hebrew keymap 2023-02-28 15:14:03 +01:00
help.txt docs: small fixes (#25831) 2023-11-03 07:22:02 +08:00
helphelp.txt docs: fix misparsed headings (#24162) 2023-06-26 11:16:55 +02:00
if_perl.txt test: spellcheck :help (vimdoc) files #24109 2023-06-22 03:44:51 -07:00
if_pyth.txt docs: remove trailing spaces #24455 2023-07-25 05:07:13 -07:00
if_ruby.txt vim-patch:8.2.0578: heredoc for interfaces does not support "trim" 2023-04-29 09:20:52 +08:00
indent.txt fix(docs): vimdoc syntax errors 2023-06-26 11:29:12 +02:00
index.txt vim-patch:2bbd0d30eebd (#25637) 2023-10-14 19:28:41 +08:00
insert.txt docs: small improvements to compl-autocomplete example (#25299) 2023-09-22 06:51:47 +08:00
intro.txt vim-patch:partial:5985879e3c36 (#25780) 2023-10-26 06:41:54 +08:00
job_control.txt docs: small fixes 2023-05-13 21:33:22 +02:00
lsp.txt refactor: vim.ui.clipboard #26040 2023-11-14 05:15:45 -08:00
lua-guide.txt docs: small fixes 2023-10-10 19:20:32 +02:00
lua.txt feat: add vim.text module (#26069) 2023-11-16 11:35:54 -06:00
luaref.txt docs: misc #24561 2023-09-20 04:15:23 -07:00
luvref.txt docs(luv): correct uv.spawn options.args docs about the first argument 2023-09-02 16:58:19 +02:00
map.txt vim-patch:8.2.4861: it is not easy to restore saved mappings 2023-11-09 21:34:04 +08:00
mbyte.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
message.txt vim-patch:9.0.2103: recursive callback may cause issues on some archs (#26013) 2023-11-13 06:33:34 +08:00
mlang.txt docs: fix/remove invalid URLs #20647 2022-10-14 08:01:13 -07:00
motion.txt vim-patch:02902b547bdb (#25406) 2023-09-29 07:05:21 +08:00
news-0.9.txt docs: do not hardcode LSP version in URL #25648 2023-10-16 08:13:37 -07:00
news.txt feat(clipboard): enable OSC 52 clipboard provider by default (#26064) 2023-11-16 12:21:24 -06:00
nvim_terminal_emulator.txt vim-patch:2dd613f57bf1 (#26009) 2023-11-13 05:44:30 +08:00
nvim.txt docs #20986 2022-12-11 18:41:26 -08:00
options.txt feat(tui): add 'termsync' option (#25871) 2023-11-14 08:53:58 -06:00
pattern.txt vim-patch:d3e277f279ed (#25734) 2023-10-21 18:04:08 +08:00
pi_gzip.txt vim-patch:30c762d99ac8 2023-11-14 23:29:09 +01:00
pi_health.txt fix(health): replace healthFoo with DiagnosticFoo (#23475) 2023-05-05 18:15:44 +02:00
pi_msgpack.txt vim-patch:9.0.1335: no test for bad use of spaces in help files (#24483) 2023-07-25 20:58:09 +08:00
pi_netrw.txt feat(defaults): set g:netrw_use_errorwindow = 0 #24179 2023-06-29 14:14:14 -07:00
pi_paren.txt
pi_spec.txt docs: fix treesitter parsing errors 2023-01-01 15:05:13 +01:00
pi_tar.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
pi_tutor.txt
pi_zip.txt vim-patch:da4e433dc3be (#25912) 2023-11-06 19:03:08 +08:00
provider.txt fix(osc52): enable OSC 52 by default in tmux sessions (#26072) 2023-11-16 13:56:05 -06:00
quickfix.txt vim-patch:9.0.2064: cannot use buffer-number for errorformat (#25782) 2023-10-26 07:42:29 +08:00
quickref.txt docs: small fixes (#25831) 2023-11-03 07:22:02 +08:00
recover.txt feat: ignore swapfile for running Nvim processes #25336 2023-10-04 06:31:25 -07:00
remote_plugin.txt docs: small fixes 2023-10-10 19:20:32 +02:00
remote.txt vim-patch:partial:938ae280c79b (#22356) 2023-02-21 23:50:29 +08:00
repeat.txt fix(runtime): respect 'rtp' order for all runtime files (#24335) 2023-07-14 06:46:16 +08:00
rileft.txt docs: fix treesitter parsing errors 2023-01-01 15:05:13 +01:00
russian.txt docs #24061 2023-06-19 08:40:33 -07:00
scroll.txt vim-patch:5277cfaf8afe (#25397) 2023-09-28 05:22:09 +08:00
sign.txt feat(docs): generate builtin.txt (#24493) 2023-07-28 14:48:41 +01:00
spell.txt vim-patch:10e8ff9b2607 (#23977) 2023-06-11 12:40:22 +01:00
starting.txt feat(server): allow embed with listen (#25709) 2023-11-01 11:04:53 +08:00
support.txt docs: fix typos 2023-04-04 19:07:33 +02:00
syntax.txt fix(ui): always use stl/stlnc fillchars when drawing statusline (#25267) 2023-09-24 10:49:47 +08:00
tabpage.txt docs: fix typos (#20150) 2022-09-26 17:43:23 +08:00
tagsrch.txt docs: remove trailing spaces #24455 2023-07-25 05:07:13 -07:00
term.txt docs(term): use tic -x for better compatibility with old ncurses (#25421) 2023-09-29 10:57:02 -05:00
testing.txt fix(lua): improve annotations for stricter luals diagnostics (#24609) 2023-08-09 11:06:13 +02:00
tips.txt vim-patch:6a500661a9cb 2023-08-10 17:28:02 +08:00
treesitter.txt docs(treesitter): add disclaimer about needing to parse before get_node() 2023-11-04 14:55:44 +01:00
uganda.txt vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ui.txt docs: deprecate the "term_background" UI field 2023-11-13 19:04:47 -06:00
undo.txt vim-patch:9.0.1683: Updated runtime files (#24638) 2023-08-10 17:45:36 +08:00
userfunc.txt vim-patch:9.0.2059: outstanding exceptions may be skipped (#25736) 2023-10-21 18:46:52 +08:00
usr_01.txt vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
usr_02.txt refactor(options)!: graduate some more shortmess flags 2023-09-25 18:23:15 +02:00
usr_03.txt vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
usr_04.txt docs: update explanation of Y to reflect new defaults 2022-02-24 18:13:44 +08:00
usr_05.txt vim-patch:81b8bf5b4a33 2023-08-10 17:28:04 +08:00
usr_06.txt feat!: remove hardcopy 2023-01-03 10:07:43 +00:00
usr_07.txt docs: update explanation of Y to reflect new defaults 2022-02-24 18:13:44 +08:00
usr_08.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_09.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_10.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_11.txt docs #24061 2023-06-19 08:40:33 -07:00
usr_12.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_20.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_21.txt docs: remove trailing spaces #24455 2023-07-25 05:07:13 -07:00
usr_22.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_23.txt
usr_24.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_25.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_26.txt
usr_27.txt
usr_28.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_29.txt fix(docs): vimdoc syntax errors 2023-06-26 11:29:12 +02:00
usr_30.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
usr_31.txt
usr_32.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_40.txt fix(docs): vimdoc syntax errors 2023-06-26 11:29:12 +02:00
usr_41.txt vim-patch:8.2.4825: can only get a list of mappings 2023-11-09 21:34:04 +08:00
usr_42.txt docs(manual): fix treesitter parsing errors 2023-01-01 15:05:21 +01:00
usr_43.txt docs: remove trailing spaces #24455 2023-07-25 05:07:13 -07:00
usr_44.txt
usr_45.txt docs #24061 2023-06-19 08:40:33 -07:00
usr_toc.txt feat!: remove hardcopy 2023-01-03 10:07:43 +00:00
various.txt Use Lua autocommand and make TermClose autocommand global 2023-08-10 09:53:56 -05:00
vi_diff.txt fix(docs): vimdoc syntax errors 2023-06-25 17:14:28 +02:00
vim_diff.txt fix(defaults): set 'fsync' #26034 2023-11-14 02:56:50 -08:00
visual.txt vim-patch:9.0.1915: r_CTRL-C works differently in visual mode (#25248) 2023-09-20 06:37:29 +08:00
windows.txt refactor(float): rename ex_floatclose to ex_fclose (#25596) 2023-10-11 15:03:59 +08:00