compat32: Zero struct to avoid stack disclosure
Reported by: Adam Crosser, Praetorian Reviewed by: philip Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55811 (cherry picked from commit 097cb4e9f0432c543c704cec712ce1cd3302335c)
This commit is contained in:
parent
6348a5fd0d
commit
4551ea3b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ static int
|
|||
freebsd32_kevent_copyout(void *arg, struct kevent *kevp, int count)
|
||||
{
|
||||
struct freebsd32_kevent_args *uap;
|
||||
struct kevent32 ks32[KQ_NEVENTS];
|
||||
struct kevent32 ks32[KQ_NEVENTS] = {};
|
||||
int i, error;
|
||||
|
||||
KASSERT(count <= KQ_NEVENTS, ("count (%d) > KQ_NEVENTS", count));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue