Fix a missing set of parantheses that could cause recent versions of libthr
to crash deferencing a NULL pointer to the user context on powerpc64 systems with COMPAT_FREEBSD32 defined.
This commit is contained in:
parent
f6ff063a6e
commit
07ae21bae9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212586
@ -251,9 +251,9 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
|
||||
tf->fixreg[FIRSTARG] = sig;
|
||||
#ifdef COMPAT_FREEBSD32
|
||||
tf->fixreg[FIRSTARG+2] = (register_t)usfp +
|
||||
(p->p_sysent->sv_flags & SV_ILP32) ?
|
||||
((p->p_sysent->sv_flags & SV_ILP32) ?
|
||||
offsetof(struct sigframe32, sf_uc) :
|
||||
offsetof(struct sigframe, sf_uc);
|
||||
offsetof(struct sigframe, sf_uc));
|
||||
#else
|
||||
tf->fixreg[FIRSTARG+2] = (register_t)usfp +
|
||||
offsetof(struct sigframe, sf_uc);
|
||||
|
Loading…
Reference in New Issue
Block a user