]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: do not fetch next expression on runaway number of concatenation components
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2024 17:20:47 +0000 (18:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jan 2024 11:19:55 +0000 (12:19 +0100)
commit955bb6d31c90453e43043346c917646ddc4e5c4e
tree0136e5d18d770154c204197fd94ca63687cb198f
parent6bc6673fc88c8a3e3dd5504b2d24a6d6bc2f8427
evaluate: do not fetch next expression on runaway number of concatenation components

If this is the last expression, then the runaway flag is set on and
evaluation bails in the next iteration, do not fetch next list element
which refers to the list head.

I found this by code inspection, I could not trigger any crash with this
one.

Fixes: ae1d54d1343f ("evaluate: do not crash on runaway number of concatenation components")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c