aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/utility_functions_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-08-11 10:30:38 -0400
committerJames McCoy <jamessan@jamessan.com>2017-08-11 10:30:38 -0400
commit9edf00bddf6802044e06bd15daad4a5735ccade8 (patch)
tree26f42a8d349db94f9faf87846aaae116582a76e7 /test/functional/lua/utility_functions_spec.lua
parent320b57311f155ec1c2784923994992bc79df21c6 (diff)
downloadrneovim-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