]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] EBTABLES: Fix wraparounds in ebt_entries verification.
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Dec 2006 03:47:52 +0000 (19:47 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 17 Dec 2006 00:20:46 +0000 (16:20 -0800)
commitb967e13584aca829627eaf17d19a69edd3fadb40
tree9f9771e68656c7e51bf340e2423bbe02d4fbbb07
parent8aa01bd451fafa853eed8a10fe413230bea547ac
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/bridge/netfilter/ebtables.c