Module Name: src Committed By: kamil Date: Thu Feb 13 13:38:44 UTC 2020
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Disable UBSan warnings for trigger_segv() Dereferencing the NULL pointer is on purpose. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/tests/lib/libc/sys/t_ptrace_wait.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/sys/t_ptrace_wait.h diff -u src/tests/lib/libc/sys/t_ptrace_wait.h:1.20 src/tests/lib/libc/sys/t_ptrace_wait.h:1.21 --- src/tests/lib/libc/sys/t_ptrace_wait.h:1.20 Thu Feb 13 13:34:47 2020 +++ src/tests/lib/libc/sys/t_ptrace_wait.h Thu Feb 13 13:38:44 2020 @@ -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) {