[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)
commitbb2ef25c2c62444b8fdb0346a23658a419803df9
treeb16356c4da5e33704db570324380ddf44908ae44
parentb6332e6cf9c9198c0f3b0fe37c2c57514dafe1b8
[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