]> git.baikalelectronics.ru Git - kernel.git/commit
[EBTABLES]: Fix wraparounds in ebt_entries verification.
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Dec 2006 03:22:42 +0000 (19:22 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:31:53 +0000 (21:31 -0800)
commitdbb4a3d1e81a6cff41bb4abb6edc34c7d652936b
treeb16356c4da5e33704db570324380ddf44908ae44
parent9c2bf2c7bdf5e989477d38e7054a10b13f4913b3
[EBTABLES]: Fix wraparounds in ebt_entries verification.

We need to verify that
a) we are not too close to the end of buffer to dereference
b) next entry we'll be checking won't be _before_ our

While we are at it, don't subtract unrelated pointers...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebtables.c