]> git.ipfire.org Git - thirdparty/ipset.git/commit
Limit the maximal range of consecutive elements to add/delete fix
authorJozsef Kadlecsik <kadlec@netfilter.org>
Fri, 16 Jul 2021 12:36:45 +0000 (14:36 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Fri, 16 Jul 2021 12:36:45 +0000 (14:36 +0200)
commita63d02aeb7d00a2546c8bfc966b415704979b043
tree844aa3fbe03f995d38fdaf61656143a640806a3b
parent0ec051e61f0568e27688248dc28f568127780437
Limit the maximal range of consecutive elements to add/delete fix

Avoid possible number overflows when calculating the number of
consecutive elements. Also, compute properly the consecutive
elements in the case of hash:net* types.

Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/net/netfilter/ipset/ip_set_hash_ip.c
kernel/net/netfilter/ipset/ip_set_hash_ipmark.c
kernel/net/netfilter/ipset/ip_set_hash_ipport.c
kernel/net/netfilter/ipset/ip_set_hash_ipportip.c
kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c
kernel/net/netfilter/ipset/ip_set_hash_net.c
kernel/net/netfilter/ipset/ip_set_hash_netiface.c
kernel/net/netfilter/ipset/ip_set_hash_netnet.c
kernel/net/netfilter/ipset/ip_set_hash_netport.c
kernel/net/netfilter/ipset/ip_set_hash_netportnet.c