OSDN Git Service

[DECNet] fib: Fix out of bound access of dn_fib_props[]
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Apr 2007 15:39:47 +0000 (17:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Apr 2007 15:39:47 +0000 (17:39 +0200)
commita86164be2f5448d27c2ae9eaf69ce21ea2dec33d
tree1ef150636d4d23c596cfe7db5e412b789f198c83
parent1784144ef855bb5dd483359f14162b9abadd8517
[DECNet] fib: Fix out of bound access of dn_fib_props[]

Backported from 2.6. Found and fixed from Thomas Graf :

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>
net/decnet/dn_fib.c