In article <20200221222550.325a6f...@cvs.netbsd.org>,
Kamil Rytarowski <source-changes-d@NetBSD.org> wrote:
>-=-=-=-=-=-
>
>Module Name:   src
>Committed By:  kamil
>Date:          Fri Feb 21 22:25:50 UTC 2020
>
>Modified Files:
>       src/tests/lib/libc/gen: t_siginfo.c
>
>Log Message:
>Mark division by 0 as expected in sigfpe_int
>
>Disable ubsan instrumentation on the operation.

>+#if defined(__clang__)
>+__attribute__((no_sanitize("undefined")))
>+#else               
>+__attribute__((no_sanitize_undefined))
>+#endif
>+static long int
>+sigfpe_int_division(long int a, long int b)
>+{
>+
>+      return a / b;
>+}

Have you tested this? I recall I needed to make it a separate function...

christos

Reply via email to