]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: fix gmp assertion with too-large reject code
authorFlorian Westphal <fw@strlen.de>
Thu, 14 Dec 2023 08:39:13 +0000 (09:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Jan 2025 23:41:53 +0000 (00:41 +0100)
commit46242174ca49fa298fe750ba14a384aa634eb030
tree25be4fb9106c3a043d8bc024c0ad763cb07b42cd
parent8b86449fa876e9bd1d36ce4c016754f8848d8e7e
evaluate: fix gmp assertion with too-large reject code

commit 060ed8655d64874a92e6fba2ba9452b2aa94849e upstream.

Before:
nft: gmputil.c:77: mpz_get_uint8: Assertion `cnt <= 1' failed.
After: Error: reject code must be integer in range 0-255

Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/icmp_reject_type_uint8_assert [new file with mode: 0644]