]> git.baikalelectronics.ru Git - kernel.git/commit
[IPv4] fib: Fix out of bound access of fib_props[]
authorThomas Graf <tgraf@suug.ch>
Sun, 25 Mar 2007 03:32:54 +0000 (20:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 26 Mar 2007 01:48:03 +0000 (18:48 -0700)
commitf6c5d72f17bcbe68b8a8ccf2326b298bd304ebb2
tree5ebef9a68b3aba01c0d8b3285429ae47bb287c9a
parent072d58ac96e759784a709aadcb84673a4cd87dd6
[IPv4] fib: Fix out of bound access of fib_props[]

Fixes a typo which caused fib_props[] to have the wrong size
and makes sure the value used to index the array which is
provided by userspace via netlink is checked to avoid out of
bound access.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c