aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-02-14 12:49:34 +0800
committerGitHub <noreply@github.com>2026-02-14 04:49:34 +0000
commit29c81ba27e97765bda78c4cbf7112e9c6ed63e06 (patch)
treeaa8713b9878ed069c7e87199fd12a869f08b4b27 /test/functional/vimscript/executable_spec.lua
parent1a1a60bd0526b76ae232cc59cd1eaf5ad3ce9e77 (diff)
downloadrneovim-29c81ba27e97765bda78c4cbf7112e9c6ed63e06.tar.gz
rneovim-29c81ba27e97765bda78c4cbf7112e9c6ed63e06.tar.bz2
rneovim-29c81ba27e97765bda78c4cbf7112e9c6ed63e06.zip
refactor: fix coverity warnings (#37858)
** CID 643177: (OVERRUN) /src/nvim/ui.c: 433 in ui_detach_impl() /src/nvim/ui.c: 433 in ui_detach_impl() _____________________________________________________________________________________________ *** CID 643177: (OVERRUN) /src/nvim/ui.c: 433 in ui_detach_impl() 427 if (shift_index >= MAX_UI_COUNT) { 428 abort(); 429 } 430 431 // Shift UIs at "shift_index" 432 while (shift_index < ui_count - 1) { >>> CID 643177: (OVERRUN) >>> Overrunning array "uis" of 16 8-byte elements at element index 16 (byte offset 135) using index "shift_index" (which evaluates to 16). 433 uis[shift_index] = uis[shift_index + 1]; 434 shift_index++; 435 } 436 437 if (--ui_count 438 // During teardown/exit the loop was already destroyed, cannot schedule. /src/nvim/ui.c: 433 in ui_detach_impl() 427 if (shift_index >= MAX_UI_COUNT) { 428 abort(); 429 } 430 431 // Shift UIs at "shift_index" 432 while (shift_index < ui_count - 1) { >>> CID 643177: (OVERRUN) >>> Overrunning array "uis" of 16 8-byte elements at element index 16 (byte offset 135) using index "shift_index + 1UL" (which evaluates to 16). 433 uis[shift_index] = uis[shift_index + 1]; 434 shift_index++; 435 } 436 437 if (--ui_count 438 // During teardown/exit the loop was already destroyed, cannot schedule. ** CID 643176: Null pointer dereferences (FORWARD_NULL) _____________________________________________________________________________________________ *** CID 643176: Null pointer dereferences (FORWARD_NULL) /src/nvim/ex_getln.c: 1014 in command_line_enter() 1008 kv_destroy(ccline.last_colors.colors); 1009 1010 char *p = ccline.cmdbuff; 1011 1012 if (ui_has(kUICmdline)) { 1013 if (exmode_active) { >>> CID 643176: Null pointer dereferences (FORWARD_NULL) >>> Passing null pointer "p" to "ui_ext_cmdline_block_append", which dereferences it. 1014 ui_ext_cmdline_block_append(0, p); 1015 } 1016 ui_ext_cmdline_hide(s->gotesc); 1017 } 1018 if (!cmd_silent) { 1019 redraw_custom_title_later();
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions