]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: don't allow merging interval set/map with non-interval one
authorFlorian Westphal <fw@strlen.de>
Thu, 13 Mar 2025 09:38:25 +0000 (10:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 27 Jul 2025 18:07:06 +0000 (20:07 +0200)
commit3bb26189d1b9d0969900e486bbade27b7b9dac12
treed35bde4981dd5c15c8fd7e0b1b3f7163ecbbd3c9
parent9fefb46f537fc10cb8e8a85c20aff187c0e30b5b
evaluate: don't allow merging interval set/map with non-interval one

commit ceab53cee4999debd64ab29414b918746209ba7b upstream.

Included bogon asserts with:
BUG: invalid data expression type range_value

Pablo says: "Reject because flags interval is lacking".
Make it so.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/invalid_data_expr_type_range_value_assert [new file with mode: 0644]