Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Fix info leak.



details:   https://anonhg.NetBSD.org/src/rev/6f2b87e1b126
branches:  trunk
changeset: 453716:6f2b87e1b126
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Aug 23 13:59:45 2019 +0000

description:
Fix info leak.

diffstat:

 sys/compat/netbsd32/netbsd32_compat_43.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 18962c38f6bc -r 6f2b87e1b126 sys/compat/netbsd32/netbsd32_compat_43.c
--- a/sys/compat/netbsd32/netbsd32_compat_43.c  Fri Aug 23 13:49:12 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_43.c  Fri Aug 23 13:59:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_43.c,v 1.57 2019/01/27 02:08:40 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_compat_43.c,v 1.58 2019/08/23 13:59:45 maxv Exp $     */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.57 2019/01/27 02:08:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.58 2019/08/23 13:59:45 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_43.h"
@@ -77,6 +77,7 @@
 netbsd32_from_stat(const struct stat *sb, struct netbsd32_stat43 *sp32)
 {
 
+       memset(sp32, 0, sizeof(*sp32));
        sp32->st_dev = sb->st_dev;
        sp32->st_ino = sb->st_ino;
        sp32->st_mode = sb->st_mode;



Home | Main Index | Thread Index | Old Index