mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-11 12:11:14 +00:00
Fix nightly run sanitizer error in Fast JIT (#2601)
Suppress a sanitizer integer overflow error in signed integer add operation in Fast JIT.
This commit is contained in:
parent
a50a438461
commit
fff0e2ad1c
|
@ -298,7 +298,15 @@ fail:
|
|||
|
||||
/* macros for integer binary operations (ibinop) */
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define NO_SANITIZER_INTEGER \
|
||||
__attribute__((no_sanitize("signed-integer-overflow")))
|
||||
#else
|
||||
#define NO_SANITIZER_INTEGER
|
||||
#endif
|
||||
|
||||
#define __DEF_BI_INT_CONST_OPS(bits, opname, op) \
|
||||
NO_SANITIZER_INTEGER \
|
||||
static int##bits do_i##bits##_const_##opname(int##bits lhs, int##bits rhs) \
|
||||
{ \
|
||||
return lhs op rhs; \
|
||||
|
|
Loading…
Reference in New Issue
Block a user