aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-09-02 10:02:49 -0400
committerJames McCoy <jamessan@jamessan.com>2016-09-02 10:11:32 -0400
commita371f1027e443e59a54191b187170b63fcf94a9b (patch)
tree9fb2ee4d4bdc10c0e65713968cdd6de677b3c776 /src/nvim/api/vim.c
parentf175b281cf3e6d5287663b79c4a7f705eb83301a (diff)
downloadrneovim-a371f1027e443e59a54191b187170b63fcf94a9b.tar.gz
rneovim-a371f1027e443e59a54191b187170b63fcf94a9b.tar.bz2
rneovim-a371f1027e443e59a54191b187170b63fcf94a9b.zip
Fix error-handling of strtoimax boundary conditions
strtoimax is only required to set errno if there is an underflow/overflow. In those conditions, strtoimax returns INTMAX_MIN/INTMAX_MAX respectively, so that's the only time we should be checking the value of errno. Even in those conditions, errno needs to be set to a known good value before calling strtoimax to differentiate between "value is actually INTMAX_MAX/MIN" and "value over/underflows". Closes #5279
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions