summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-09-01 11:04:38 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-09-01 11:04:38 +0000
commitdb404416f9fd6c6dcbe9f41f25762101a365aa91 (patch)
treea2e2f423e162ec4b4442841aff36a06bcaf71e23
parent9b29a0c9dd265acbfde2fe1fcf012e05035514ba (diff)
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;
}