commit | b49d3c1e1c948d76d64790abe9acffa9fa747d19 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sun Nov 25 09:44:29 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 26 17:36:59 2012 -0500 |
tree | df232ca487f9abb44f5be051addfe7bc8d96f484 | |
parent | e1a676424c290b1c8d757e3860170ac7ecd89af4 [diff] |
net: ipmr: limit MRT_TABLE identifiers Name of pimreg devices are built from following format : char name[IFNAMSIZ]; // IFNAMSIZ == 16 sprintf(name, "pimreg%u", mrt->id); We must therefore limit mrt->id to 9 decimal digits or risk a buffer overflow and a crash. Restrict table identifiers in [0 ... 999999999] interval. Reported-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>