diff options
author | Florian Westphal <fw@strlen.de> | 2024-01-12 13:27:23 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2024-01-12 15:25:09 +0100 |
commit | e08627257ecfa7dfb68a34a1c8866e7a7e012b15 (patch) | |
tree | 9f52d78746046499683074df97782779c2a5b2f7 /tests/shell | |
parent | 9cc41467c75ab6beb35e0d7c34d04acd1a44861b (diff) |
parser: reject raw payload expressions with 0 length
Reject this at parser stage. Fix up the json input side too, else
reproducer gives:
nft: src/netlink.c:243: netlink_gen_raw_data: Assertion `len > 0' failed.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rw-r--r-- | tests/shell/testcases/bogons/nft-f/payload_expr_with_0_length_assert | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/payload_expr_with_0_length_assert b/tests/shell/testcases/bogons/nft-f/payload_expr_with_0_length_assert new file mode 100644 index 00000000..f85a04e7 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/payload_expr_with_0_length_assert @@ -0,0 +1 @@ +add rule t c @th,0,0 0 |