diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-13 13:23:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 13:23:42 +0800 |
commit | 89b0f5ac5a29799ad9effa1dad3c4f274b09d570 (patch) | |
tree | 53a75974302c006fb77d47562c6b2f8a6cf815c5 /test/functional/lua/buffer_updates_spec.lua | |
parent | 786089013d33666a2acb5ba86fb34c716a9cab26 (diff) | |
download | rneovim-89b0f5ac5a29799ad9effa1dad3c4f274b09d570.tar.gz rneovim-89b0f5ac5a29799ad9effa1dad3c4f274b09d570.tar.bz2 rneovim-89b0f5ac5a29799ad9effa1dad3c4f274b09d570.zip |
vim-patch:9.1.0022: Coverity complains about improper use of negative value (#27001)
Problem: Coverity complains about improper use of negative value
Solution: Add a condition to validate that keytyped is larger or equal
to 0
Apparently patch 9.1.0006 made it more explicit for Coverity, that the
TOLOWER_LOC() macros do not handle negative values properly. However,
that condition has always been there even before that, so add a
condition to verify that keytyped is indeed at least 0
closes: vim/vim#13824
https://github.com/vim/vim/commit/49471963fefbdf78239d9066d84e14e1876fb177
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
0 files changed, 0 insertions, 0 deletions