Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Fix info leaks.
details: https://anonhg.NetBSD.org/src/rev/723323d2a0ef
branches: trunk
changeset: 964937:723323d2a0ef
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Aug 23 06:59:52 2019 +0000
description:
Fix info leaks.
diffstat:
sys/compat/linux/common/linux_termios.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r c4cc48566f5b -r 723323d2a0ef sys/compat/linux/common/linux_termios.h
--- a/sys/compat/linux/common/linux_termios.h Fri Aug 23 06:54:54 2019 +0000
+++ b/sys/compat/linux/common/linux_termios.h Fri Aug 23 06:59:52 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_termios.h,v 1.21 2011/09/25 13:40:07 chs Exp $ */
+/* $NetBSD: linux_termios.h,v 1.22 2019/08/23 06:59:52 maxv Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -279,6 +279,7 @@
{
int i, mask;
+ memset(lt, 0, sizeof(*lt));
lt->c_iflag = 0;
lt->c_iflag |= cvtto_linux_mask(bts->c_iflag, IGNBRK, LINUX_IGNBRK);
lt->c_iflag |= cvtto_linux_mask(bts->c_iflag, BRKINT, LINUX_BRKINT);
@@ -466,6 +467,7 @@
{
int i, mask;
+ memset(lts, 0, sizeof(*lts));
lts->c_iflag = 0;
lts->c_iflag |= cvtto_linux_mask(bts->c_iflag, IGNBRK, LINUX_IGNBRK);
lts->c_iflag |= cvtto_linux_mask(bts->c_iflag, BRKINT, LINUX_BRKINT);
Home |
Main Index |
Thread Index |
Old Index