Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Disable UBSan reports in trigger_fpe()



details:   https://anonhg.NetBSD.org/src/rev/ab1e3ae2e315
branches:  trunk
changeset: 744810:ab1e3ae2e315
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Feb 13 13:34:47 2020 +0000

description:
Disable UBSan reports in trigger_fpe()

Division by 0 is on purpose.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 937fe1cd360f -r ab1e3ae2e315 tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h        Thu Feb 13 12:23:39 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h        Thu Feb 13 13:34:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.h,v 1.19 2020/02/11 00:41:37 kamil Exp $ */
+/*     $NetBSD: t_ptrace_wait.h,v 1.20 2020/02/13 13:34:47 kamil Exp $ */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -642,6 +642,11 @@
        return true;
 }
 
+#if defined(__clang__)
+__attribute__((no_sanitize("undefined")))
+#else
+__attribute__((no_sanitize_undefined))
+#endif
 static void __used
 trigger_fpe(void)
 {



Home | Main Index | Thread Index | Old Index