summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-09-01 11:04:37 +0000
committerguenther <guenther@openbsd.org>2016-09-01 11:04:37 +0000
commit93deff908e7643c806a78b320112a2a982910eba (patch)
tree316098ee58ac45a3a3502d17e21568556bc0db64
parentSwitch OpenBSD/armv7 to ARM EABI (soft-float). This is a complete ABI (diff)
downloadwireguard-openbsd-93deff908e7643c806a78b320112a2a982910eba.tar.xz
wireguard-openbsd-93deff908e7643c806a78b320112a2a982910eba.zip
Tighten up the siginfo check
-rw-r--r--regress/lib/libpthread/siginfo/siginfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libpthread/siginfo/siginfo.c b/regress/lib/libpthread/siginfo/siginfo.c
index 7deeda7c7a0..1cd872f4bd4 100644
--- a/regress/lib/libpthread/siginfo/siginfo.c
+++ b/regress/lib/libpthread/siginfo/siginfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siginfo.c,v 1.10 2003/07/31 21:48:06 deraadt Exp $ */
+/* $OpenBSD: siginfo.c,v 1.11 2016/09/01 11:04:37 guenther Exp $ */
/* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */
/*
@@ -30,8 +30,8 @@ act_handler(int signal, siginfo_t *siginfo, void *context)
write(STDOUT_FILENO, str, strlen(str));
free(str);
ASSERT(siginfo->si_addr == BOGUS);
- ASSERT(siginfo->si_code != SI_USER);
- ASSERT(siginfo->si_code > 0 && siginfo->si_code <= NSIGSEGV);
+ ASSERT(siginfo->si_code == SEGV_MAPERR ||
+ siginfo->si_code == SEGV_ACCERR);
SUCCEED;
}