diff options
author | James McCoy <jamessan@jamessan.com> | 2017-05-06 22:35:50 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-06-04 22:12:15 -0400 |
commit | eb5e4a247666c0ba26b21e214249789ea7c52e85 (patch) | |
tree | a04d27763f3547e360df39881e06ef3d18f55c12 /src/nvim/eval/executor.c | |
parent | fb2b3f98bbb90c8cebe0d272cb94c4d49789df21 (diff) | |
download | rneovim-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/executor.c')
-rw-r--r-- | src/nvim/eval/executor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/executor.c b/src/nvim/eval/executor.c index 91bb61323f..118228a40c 100644 --- a/src/nvim/eval/executor.c +++ b/src/nvim/eval/executor.c @@ -25,7 +25,7 @@ char *e_listidx = N_("E684: list index out of range: %" PRId64); /// @return OK or FAIL. int eexe_mod_op(typval_T *const tv1, const typval_T *const tv2, const char *const op) - FUNC_ATTR_NONNULL_ALL + FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NO_SANITIZE_UNDEFINED { // Can't do anything with a Funcref, a Dict or special value on the right. if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT) { |