diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-07-26 12:58:28 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-07-26 12:58:28 +0000 |
commit | 3b4f70048c1fa26de2bc29cd4a6b35489cae8a33 (patch) | |
tree | 9674a9fa80e751b768eff6891fe8909f2e099464 /lib | |
parent | b3a9102865fcf9e45633183164db435f8e75d48a (diff) | |
download | FreeBSD-src-3b4f70048c1fa26de2bc29cd4a6b35489cae8a33.zip FreeBSD-src-3b4f70048c1fa26de2bc29cd4a6b35489cae8a33.tar.gz |
Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/amd64/gen/signalcontext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/amd64/gen/signalcontext.c b/lib/libc/amd64/gen/signalcontext.c index c713a4e..5722fe3 100644 --- a/lib/libc/amd64/gen/signalcontext.c +++ b/lib/libc/amd64/gen/signalcontext.c @@ -79,6 +79,7 @@ __signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) ucp->uc_link = sig_uc; sigdelset(&ucp->uc_sigmask, sig); + ucp->uc_mcontext.mc_len = sizeof(mcontext_t); ucp->uc_mcontext.mc_rdi = (register_t)ucp; ucp->uc_mcontext.mc_rsi = (register_t)func; ucp->uc_mcontext.mc_rdx = (register_t)args; |