diff options
| author | kamil <kamil@NetBSD.org> | 2020-02-13 13:38:44 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2020-02-13 13:38:44 +0000 |
| commit | 7aa638dc0eefcc8df0fe2bd3f664bc2765d7664e (patch) | |
| tree | 243b94f1667b6739ca79dd2cbae520b0ff527c6b /tests/lib/libc | |
| parent | 1a90063dd54f4c9bb31777ea516f82c592930e71 (diff) | |
Disable UBSan warnings for trigger_segv()
Dereferencing the NULL pointer is on purpose.
Diffstat (limited to 'tests/lib/libc')
| -rw-r--r-- | tests/lib/libc/sys/t_ptrace_wait.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/libc/sys/t_ptrace_wait.h b/tests/lib/libc/sys/t_ptrace_wait.h index 4422c9e451e..6301581411d 100644 --- a/tests/lib/libc/sys/t_ptrace_wait.h +++ b/tests/lib/libc/sys/t_ptrace_wait.h @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.h,v 1.20 2020/02/13 13:34:47 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.h,v 1.21 2020/02/13 13:38:44 kamil Exp $ */ /*- * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc. @@ -606,6 +606,11 @@ trigger_trap(void) #endif } +#if defined(__clang__) +__attribute__((no_sanitize("undefined"))) +#else +__attribute__((no_sanitize_undefined)) +#endif static void __used trigger_segv(void) { |
