Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ipf/dist/tools PR 56874: avoid using uninitiali...
details: https://anonhg.NetBSD.org/src/rev/0d4e5a319e06
branches: trunk
changeset: 366704:0d4e5a319e06
user: martin <martin%NetBSD.org@localhost>
date: Fri Jun 10 06:06:00 2022 +0000
description:
PR 56874: avoid using uninitialized memory, patch from Tom Lane.
diffstat:
external/bsd/ipf/dist/tools/ipftest.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 492d51fbd907 -r 0d4e5a319e06 external/bsd/ipf/dist/tools/ipftest.c
--- a/external/bsd/ipf/dist/tools/ipftest.c Fri Jun 10 05:59:12 2022 +0000
+++ b/external/bsd/ipf/dist/tools/ipftest.c Fri Jun 10 06:06:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipftest.c,v 1.4 2018/02/04 08:19:42 mrg Exp $ */
+/* $NetBSD: ipftest.c,v 1.5 2022/06/10 06:06:00 martin Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -88,6 +88,7 @@
ip_t *ip;
m = &mb;
+ memset(m, 0, sizeof(*m));
dir = 0;
dump = 0;
hlen = 0;
Home |
Main Index |
Thread Index |
Old Index