aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-05-06 22:35:50 -0400
committerJames McCoy <jamessan@jamessan.com>2017-06-04 22:12:15 -0400
commiteb5e4a247666c0ba26b21e214249789ea7c52e85 (patch)
treea04d27763f3547e360df39881e06ef3d18f55c12 /src/nvim/eval.c
parentfb2b3f98bbb90c8cebe0d272cb94c4d49789df21 (diff)
downloadrneovim-eb5e4a247666c0ba26b21e214249789ea7c52e85.tar.gz
rneovim-eb5e4a247666c0ba26b21e214249789ea7c52e85.tar.bz2
rneovim-eb5e4a247666c0ba26b21e214249789ea7c52e85.zip
*: Disable UBSAN for VimL arithmetic implementation
After merging +num64, the 64-bit sanitizer builds show that Vim doesn't buffer the user from C's UB in signed arithmetic. Upstream doesn't appear to be [interested] in fixing the issue, so suppress UBSAN until someone decides to fix the problem. N.B., the problem existed before but went unnoticed since the sanitizer builds weren't being run in 32-bit mode. [interested]: https://groups.google.com/d/topic/vim_dev/_tqf8eQy5eA/discussion
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 398ae0045a..654c786227 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -3934,7 +3934,7 @@ eval6 (
typval_T *rettv,
int evaluate,
int want_string /* after "." operator */
-)
+) FUNC_ATTR_NO_SANITIZE_UNDEFINED
{
typval_T var2;
int op;