Skip to content

Commit

Permalink
[NETFILTER]: ip6_tables: fix stack leagage
Browse files Browse the repository at this point in the history
Fix leakage of local variable on stack. This already got fixed in
ip_tables silently by the compat patches.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent c9d8fe1 commit b5dd674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ static int get_info(void __user *user, int *len, int compat)
sizeof(info.underflow));
info.num_entries = private->number;
info.size = private->size;
memcpy(info.name, name, sizeof(info.name));
strcpy(info.name, name);

if (copy_to_user(user, &info, *len) != 0)
ret = -EFAULT;
Expand Down

0 comments on commit b5dd674

Please sign in to comment.