Author: nwhitehorn
Date: Mon Sep 13 22:50:05 2010
New Revision: 212586
URL: http://svn.freebsd.org/changeset/base/212586
Log:
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.
Modified:
head/sys/powerpc/powerpc/exec_machdep.c
Modified: head/sys/powerpc/powerpc/exec_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/exec_machdep.c Mon Sep 13 22:40:10 2010
(r212585)
+++ head/sys/powerpc/powerpc/exec_machdep.c Mon Sep 13 22:50:05 2010
(r212586)
@@ -251,9 +251,9 @@ sendsig(sig_t catcher, ksiginfo_t *ksi,
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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"