mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
linux: make sure to zero the l_siginfo structure for ptrace(2)
Reported By: dchagin Sponsored By: EPSRC
This commit is contained in:
parent
2362ad457a
commit
f102b61d0e
1 changed files with 1 additions and 0 deletions
|
|
@ -379,6 +379,7 @@ linux_ptrace_getsiginfo(struct thread *td, pid_t pid, l_ulong data)
|
|||
}
|
||||
|
||||
sig = bsd_to_linux_signal(lwpinfo.pl_siginfo.si_signo);
|
||||
memset(&l_siginfo, 0, sizeof(l_siginfo));
|
||||
siginfo_to_lsiginfo(&lwpinfo.pl_siginfo, &l_siginfo, sig);
|
||||
error = copyout(&l_siginfo, (void *)data, sizeof(l_siginfo));
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue