Pablo Neira Ayuso
a206bcb3b0
netfilter: xt_TCPOPTSTRIP: fix possible off by one access
...
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>
2013-08-01 11:45:15 +02:00
..
2013-07-13 17:42:22 -07:00
2013-05-14 13:02:30 -07:00
2013-07-18 13:07:13 -07:00
2013-05-28 13:11:01 -07:00
2013-05-28 21:58:54 -07:00
2013-06-13 02:36:09 -07:00
2013-06-24 01:46:01 -07:00
2013-07-09 18:24:39 -07:00
2013-07-19 22:12:42 -07:00
2013-05-28 13:11:01 -07:00
2013-05-28 13:11:01 -07:00
2013-07-03 15:32:58 -07:00
2013-07-26 14:22:10 -07:00
2013-03-22 10:31:16 -04:00
2013-03-17 14:35:13 -04:00
2013-06-13 02:36:09 -07:00
2013-07-12 16:09:14 -07:00
2013-03-25 12:23:41 -04:00
2013-07-16 17:09:22 -07:00
2013-05-28 13:11:01 -07:00
2013-07-24 16:05:14 -07:00
2013-07-24 17:02:13 -07:00
2013-05-28 13:11:01 -07:00
2013-07-16 12:16:03 -07:00
2013-07-14 19:36:58 -04:00
2013-07-30 16:26:16 -07:00
2013-07-02 16:33:25 -07:00
2013-04-07 16:28:01 -04:00
2013-07-16 17:48:14 +03:00
2013-04-30 03:55:20 -04:00
2013-05-27 22:50:59 -07:00
2013-08-01 11:45:15 +02:00
2013-05-28 13:11:01 -07:00
2013-07-30 16:43:19 -07:00
2013-06-13 02:36:09 -07:00
2013-06-14 13:45:10 +02:00
2013-07-01 13:19:43 -07:00
2013-06-19 16:49:39 -07:00
2013-06-13 02:36:09 -07:00
2013-06-13 02:36:09 -07:00
2013-04-22 14:58:14 -04:00
2013-06-13 02:36:09 -07:00
2013-02-21 12:05:51 -08:00
2013-07-30 00:16:21 -07:00
2013-07-09 12:49:56 -07:00
2013-07-17 13:43:55 -07:00
2013-07-11 17:03:36 -07:00
2013-07-09 18:24:39 -07:00
2013-06-23 23:51:48 -07:00
2013-07-16 09:55:58 +03:00
2013-07-01 18:15:25 -07:00
2013-06-26 13:23:13 -07:00
2013-06-06 11:52:14 -07:00
2013-07-09 18:24:39 -07:00
2013-05-27 22:50:59 -07:00
2013-07-10 17:08:27 -07:00