neovim/test/functional
Gregory Anders 6d997f8068
fix(terminal): handle C0 characters in OSC terminator (#30090)
When a C0 character is present in an OSC terminator (i.e. after the ESC
but before a \ (0x5c) or printable character), vterm executes the
control character and resets the current string fragment. If the C0
character is the final byte in the sequence, the string fragment has a
zero length. However, because the VT parser is still in the "escape"
state, vterm attempts to subtract 1 from the string length (to account
for the escape character). When the string fragment is empty, this
causes an underflow in the unsigned size variable, resulting in a buffer
overflow.

The fix is simple: explicitly check if the string length is non-zero
before subtracting.
2024-08-19 06:43:06 -05:00
..
api Merge pull request #29650 from ruuzia/fix_expression_parser_crash 2024-07-21 16:29:16 +02:00
autocmd refactor(tests): again yet more global highlight definitions 2024-08-14 14:03:34 +02:00
core fix(filetype): fix :filetype detect error with -u NONE (#29991) 2024-08-06 22:20:26 +08:00
editor fix(input): handle vim.on_key() properly with ALT and K_SPECIAL (#29677) 2024-07-13 04:14:29 +08:00
ex_cmds vim-patch:9.1.0651: ex: trailing dot is optional for :g and :insert/:append (#29946) 2024-08-02 07:52:09 +08:00
fixtures feat(lsp): vim.lsp.buf.format() supports textDocument/rangesFormatting #27323 2024-06-24 07:54:56 -07:00
legacy vim-patch:9.1.0648: [security] double-free in dialog_changed() 2024-08-03 08:25:43 +08:00
lua fix(vim.text): handle very long strings (#30075) 2024-08-17 22:28:03 -05:00
options test: improve test conventions 2024-04-23 18:17:04 +02:00
plugin fix(man): avoid setting v:errmsg (#30052) 2024-08-15 22:02:20 +08:00
provider refactor(tests): again yet more global highlight definitions 2024-08-14 14:03:34 +02:00
script fix(luacats): allow all types inside tuples 2024-06-01 12:56:43 +01:00
shada refactor(shada): rework msgpack decoding without msgpack-c 2024-08-05 11:12:44 +02:00
terminal fix(terminal): handle C0 characters in OSC terminator (#30090) 2024-08-19 06:43:06 -05:00
treesitter test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
ui fix(api): error properly with invalid field in nvim_open_win (#30078) 2024-08-17 23:10:27 +00:00
vimscript refactor: add assertion for v_blob in tv_ptr() (#29554) 2024-07-04 09:54:51 +08:00
example_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
preload.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
testnvim.lua fix(scrollbind): properly take filler/virtual lines into account 2024-07-31 11:33:32 +01:00