mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
1b05756c48
Dan Carpenter reported that the static checker emits the warning net/netfilter/ipset/ip_set_list_set.c:600 init_list_set() warn: integer overflows 'sizeof(*map) + size * set->dsize' Limit the maximal number of elements in list type of sets. Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
11 lines
236 B
C
11 lines
236 B
C
#ifndef __IP_SET_LIST_H
|
|
#define __IP_SET_LIST_H
|
|
|
|
#include <uapi/linux/netfilter/ipset/ip_set_list.h>
|
|
|
|
|
|
#define IP_SET_LIST_DEFAULT_SIZE 8
|
|
#define IP_SET_LIST_MIN_SIZE 4
|
|
#define IP_SET_LIST_MAX_SIZE 65536
|
|
|
|
#endif /* __IP_SET_LIST_H */
|