git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a661b43
)
netfilter: xt_TCPMSS: fix handling of malformed TCP header and options
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 25 Jul 2013 08:37:49 +0000
(10:37 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 1 Aug 2013 09:42:53 +0000
(11:42 +0200)
Make sure the packet has enough room for the TCP header and
that it is not malformed.
While at it, store tcph->doff*4 in a variable, as it is used
several times.
This patch also fixes a possible off by one in case of malformed
TCP options.
Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
No differences found