diff options
-rw-r--r-- | mysys/my_compare.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysys/my_compare.c b/mysys/my_compare.c index ff704aa40f0..bc7da123424 100644 --- a/mysys/my_compare.c +++ b/mysys/my_compare.c @@ -117,6 +117,11 @@ static int compare_bin(const uchar *a, uint a_length, #define FCMP(A,B) ((int) (A) - (int) (B)) +/* + Suppress run-time checks in this function for overflow because it + intentionally performs integer overflow in error checking. +*/ +__attribute__((no_sanitize("shift"))) int ha_key_cmp(HA_KEYSEG *keyseg, const uchar *a, const uchar *b, uint key_length, uint32 nextflag, uint *diff_pos) |