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:
71ffe9c
)
netfilter: xt_TCPOPTSTRIP: fix possible off by one access
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 25 Jul 2013 08:46:46 +0000
(10:46 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 1 Aug 2013 09:45:15 +0000
(11:45 +0200)
Fix a possible off by one access since optlen()
touches opt[offset+1] unsafely when i == tcp_hdrlen(skb) - 1.
This patch replaces tcp_hdrlen() by the local variable tcp_hdrlen
that stores the TCP header length, to save some cycles.
Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
No differences found