mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Implement the use of si_addr in siginfo_t.
Suggested by: jdp
This commit is contained in:
parent
eb9df38223
commit
3196c2972d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51834
@ -1370,6 +1370,7 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
|
||||
/* Fill in POSIX parts */
|
||||
sf.sf_si.si_signo = sig;
|
||||
sf.sf_si.si_code = code;
|
||||
sf.sf_si.si_addr = (void*)frame->tf_regs[FRAME_TRAPARG_A0];
|
||||
}
|
||||
else
|
||||
frame->tf_regs[FRAME_A1] = code;
|
||||
|
@ -682,6 +682,7 @@ sendsig(catcher, sig, mask, code)
|
||||
/* fill siginfo structure */
|
||||
sf.sf_si.si_signo = sig;
|
||||
sf.sf_si.si_code = code;
|
||||
sf.sf_si.si_addr = (void*)regs->tf_err;
|
||||
}
|
||||
else {
|
||||
/* Old FreeBSD-style arguments. */
|
||||
|
@ -682,6 +682,7 @@ sendsig(catcher, sig, mask, code)
|
||||
/* fill siginfo structure */
|
||||
sf.sf_si.si_signo = sig;
|
||||
sf.sf_si.si_code = code;
|
||||
sf.sf_si.si_addr = (void*)regs->tf_err;
|
||||
}
|
||||
else {
|
||||
/* Old FreeBSD-style arguments. */
|
||||
|
Loading…
Reference in New Issue
Block a user