Pull up the following revision, requested by riastradh in ticket #1836

sys/compat/freebsd/freebsd_machdep.c		1.5

Memset before copyout
This commit is contained in:
martin 2023-06-22 06:30:48 +00:00
parent 845645d214
commit db78deac14
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_machdep.c,v 1.60 2014/02/23 22:35:27 dsl Exp $ */
/* $NetBSD: freebsd_machdep.c,v 1.60.22.1 2023/06/22 06:30:48 martin Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.60 2014/02/23 22:35:27 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: freebsd_machdep.c,v 1.60.22.1 2023/06/22 06:30:48 martin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vm86.h"
@ -93,6 +93,8 @@ freebsd_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
fp--;
memset(&frame, 0, sizeof(frame));
/* Build stack frame for signal trampoline. */
frame.sf_signum = sig;
frame.sf_code = code;