OpenCloudOS-Kernel/net/netfilter/ipset
Dan Carpenter 0f9f5e1b83 netfilter: ipset: off by one in ip_set_nfnl_get_byindex()
The ->ip_set_list[] array is initialized in ip_set_net_init() and it
has ->ip_set_max elements so this check should be >= instead of >
otherwise we are off by one.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2014-10-22 14:12:50 +02:00
..
Kconfig netfilter: ipset: hash:mac type added to ipset 2014-09-15 22:20:21 +02:00
Makefile netfilter: ipset: hash:mac type added to ipset 2014-09-15 22:20:21 +02:00
ip_set_bitmap_gen.h netfilter: ipset: Add skbinfo extension kernel support for the bitmap set types. 2014-09-15 22:20:20 +02:00
ip_set_bitmap_ip.c netfilter: ipset: Add skbinfo extension kernel support for the bitmap set types. 2014-09-15 22:20:20 +02:00
ip_set_bitmap_ipmac.c netfilter: ipset: Add skbinfo extension kernel support for the bitmap set types. 2014-09-15 22:20:20 +02:00
ip_set_bitmap_port.c netfilter: ipset: Add skbinfo extension kernel support for the bitmap set types. 2014-09-15 22:20:20 +02:00
ip_set_core.c netfilter: ipset: off by one in ip_set_nfnl_get_byindex() 2014-10-22 14:12:50 +02:00
ip_set_getport.c netfilter: ipset: Support package fragments for IPv4 protos without ports 2013-09-30 21:33:26 +02:00
ip_set_hash_gen.h netfilter: ipset: hash:mac type added to ipset 2014-09-15 22:20:21 +02:00
ip_set_hash_ip.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_ipmark.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_ipport.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_ipportip.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_ipportnet.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_mac.c netfilter: ipset: hash:mac type added to ipset 2014-09-15 22:20:21 +02:00
ip_set_hash_net.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_netiface.c netfilter: use IS_ENABLED(CONFIG_BRIDGE_NETFILTER) 2014-10-02 18:30:54 +02:00
ip_set_hash_netnet.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_netport.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_hash_netportnet.c netfilter: ipset: Add skbinfo extension kernel support for the hash set types. 2014-09-15 22:20:20 +02:00
ip_set_list_set.c netfilter: ipset: Add skbinfo extension kernel support for the list set type. 2014-09-15 22:20:20 +02:00
pfxlen.c netfilter: Convert uses of __constant_<foo> to <foo> 2014-03-13 14:13:19 +01:00