Fix kernel info leak.
+ Possible info leak: [len=32, leaked=16] | #0 0xffffffff80baf3a7 in kleak_copyout | #1 0xffffffff80b940f8 in sys___timer_settime50 | #2 0xffffffff80259c42 in syscall
This commit is contained in:
parent
67035901a5
commit
2f18cc3a90
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_time.c,v 1.191 2018/11/13 07:16:33 maxv Exp $ */
|
||||
/* $NetBSD: kern_time.c,v 1.192 2018/11/28 15:10:40 maxv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009 The NetBSD Foundation, Inc.
|
||||
|
@ -61,7 +61,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.191 2018/11/13 07:16:33 maxv Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.192 2018/11/28 15:10:40 maxv Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
@ -603,6 +603,7 @@ timer_create1(timer_t *tid, clockid_t id, struct sigevent *evp,
|
|||
pts = timers_alloc(p);
|
||||
|
||||
pt = pool_get(&ptimer_pool, PR_WAITOK);
|
||||
memset(pt, 0, sizeof(*pt));
|
||||
if (evp != NULL) {
|
||||
if (((error =
|
||||
(*fetch_event)(evp, &pt->pt_ev, sizeof(pt->pt_ev))) != 0) ||
|
||||
|
|
Loading…
Reference in New Issue