diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-03-23 11:30:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-23 03:30:17 +0000 |
| commit | 0a60f32af3c02d538ceae4a6e40e5e0b1faa75cb (patch) | |
| tree | 3729be1c7b22876c41bfbd2a88bf802eb4d4c85e /test/functional/vimscript/executable_spec.lua | |
| parent | e51f217be7004067439bc65b146c90c531048084 (diff) | |
| download | rneovim-0a60f32af3c02d538ceae4a6e40e5e0b1faa75cb.tar.gz rneovim-0a60f32af3c02d538ceae4a6e40e5e0b1faa75cb.tar.bz2 rneovim-0a60f32af3c02d538ceae4a6e40e5e0b1faa75cb.zip | |
refactor(move.c): fix coverity warning (#38427)
*** CID 645128: Integer handling issues (INTEGER_OVERFLOW)
/src/nvim/move.c: 2071 in scroll_cursor_bot()
2065 used += boff.height;
2066 if (used > wp->w_view_height) {
2067 break;
2068 }
2069 if (extra < (mouse_dragging > 0 ? mouse_dragging - 1 : so)
2070 || scrolled < min_scroll) {
>>> CID 645128: Integer handling issues (INTEGER_OVERFLOW)
>>> Expression "extra", where "boff.height" is known to be equal to 2147483647, overflows the type of "extra", which is type "int".
2071 extra += boff.height;
2072 if (boff.lnum >= wp->w_botline
2073 || (boff.lnum + 1 == wp->w_botline
2074 && boff.fill > wp->w_filler_rows)) {
2075 // Count screen lines that are below the window.
2076 scrolled += boff.height;
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions