All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6 1/6]: Fix stack leakage in ip6tables
@ 2005-01-11 12:49 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-01-11 12:49 UTC (permalink / raw)
  To: David S. Miller; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 01.diff --]
[-- Type: text/x-patch, Size: 1018 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/11 03:41:31+01:00 kaber@coreworks.de 
#   [NETFILTER]: Fix stack leakage in ip6tables
#   
#   ip6tables version of Rusty's iptables fix.
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/ipv6/netfilter/ip6_tables.c
#   2005/01/11 03:41:24+01:00 kaber@coreworks.de +1 -1
#   [NETFILTER]: Fix stack leakage in ip6tables
#   
#   ip6tables version of Rusty's iptables fix.
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
diff -Nru a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
--- a/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:37 +01:00
+++ b/net/ipv6/netfilter/ip6_tables.c	2005-01-11 13:39:37 +01:00
@@ -1373,7 +1373,7 @@
 			       sizeof(info.underflow));
 			info.num_entries = t->private->number;
 			info.size = t->private->size;
-			strcpy(info.name, name);
+			memcpy(info.name, name, sizeof(info.name));
 
 			if (copy_to_user(user, &info, *len) != 0)
 				ret = -EFAULT;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-11 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11 12:49 [PATCH 2.6 1/6]: Fix stack leakage in ip6tables Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.