summaryrefslogtreecommitdiff
path: root/net/tipc/node_subscr.h
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-07-02 06:57:19 +0400
committerDavid S. Miller <davem@davemloft.net>2008-07-02 06:57:19 +0400
commit93b3cff9915322d6fa36bac0064714a7076230e4 (patch)
treef17f0fd69b2c5c930b29f5e40b214d6a458cbbfc /net/tipc/node_subscr.h
parent8fde8a076940969d32805b853efdce8b988d7dda (diff)
downloadlinux-93b3cff9915322d6fa36bac0064714a7076230e4.tar.xz
netdevice: Fix wrong string handle in kernel command line parsing
v1->v2: Use strlcpy() to ensure s[i].name be null-termination. 1. In netdev_boot_setup_add(), a long name will leak. ex. : dev=21,0x1234,0x1234,0x2345,eth123456789verylongname......... 2. In netdev_boot_setup_check(), mismatch will happen if s[i].name is a substring of dev->name. ex. : dev=...eth1 dev=...eth11 [ With feedback from Ben Hutchings. ] Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node_subscr.h')
0 files changed, 0 insertions, 0 deletions