diff options
author | James McCoy <jamessan@jamessan.com> | 2017-08-11 10:30:38 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-08-11 10:30:38 -0400 |
commit | 9edf00bddf6802044e06bd15daad4a5735ccade8 (patch) | |
tree | 26f42a8d349db94f9faf87846aaae116582a76e7 /test/functional/lua/utility_functions_spec.lua | |
parent | 320b57311f155ec1c2784923994992bc79df21c6 (diff) | |
download | rneovim-9edf00bddf6802044e06bd15daad4a5735ccade8.tar.gz rneovim-9edf00bddf6802044e06bd15daad4a5735ccade8.tar.bz2 rneovim-9edf00bddf6802044e06bd15daad4a5735ccade8.zip |
coverity/166184: Check length of str, not term
32396b5879b429def1c48948069c55366d41b9be add length checks to
TERMINAL_FAMILY/STARTS_WITH to ensure memcmp() wouldn't read past the
end of the string. However, "term" was copy/pasted from TERMINAL_FAMILY
so STARTS_WITH() was unnecessarily reading the, potentially NULL, term
variable.
Diffstat (limited to 'test/functional/lua/utility_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions