Misc parser fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | json: dccp: remove erroneous const qualifiersrc/ | +1 | 0 replies | |
| 2/6 | evaluate: do not abort when prefix map has non-map elementsrc/ tests/ tests/ | +32 | 0 replies | |
| 3/6 | parser: don't assert on scope underflowssrc/ tests/ | +7 | 0 replies | |
| 4/6 | parser: reject zero-length interface namessrc/ tests/ | +36 | 1 reply | |
| 5/6 | parser: reject zero-length interface names in flowtablessrc/ tests/ | +17 | 0 replies | |
| 6/6 | ct timeout: fix 'list object x' vs. 'list objects in table' confusioninclude/ src/ src/ +2 more | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nft 0/6] Misc parser fixes
These patches fix various bugs in the parsing
and evaluation steps.
I added a new 'bogons' test dir to shell, this can be used to collect invalid inputs that should be rejected instead of nft exiting with an assertion failure.
Florian Westphal (6):
json: dccp: remove erroneous const qualifier
evaluate: do not abort when prefix map has non-map element
parser: don't assert on scope underflows
parser: reject zero-length interface names
parser: reject zero-length interface names in flowtables ct timeout: fix 'list object x' vs. 'list objects in table' confusion
include/rule.h | 1 + src/cache.c | 1 + src/evaluate.c | 18 ++++-- src/parser_bison.y | 61 ++++++++++++++----- src/parser_json.c | 2 +- src/rule.c | 1 + tests/shell/testcases/bogons/assert_failures | 12 ++++ .../nat_prefix_map_with_set_element_assert | 7 +++ .../bogons/nft-f/scope_underflow_assert | 6 ++ .../nft-f/zero_length_devicename_assert | 5 ++ .../zero_length_devicename_flowtable_assert | 5 ++ 11 files changed, 98 insertions(+), 21 deletions(-) create mode 100755 tests/shell/testcases/bogons/assert_failures create mode 100644 tests/shell/testcases/bogons/nft-f/nat_prefix_map_with_set_element_assert create mode 100644 tests/shell/testcases/bogons/nft-f/scope_underflow_assert create mode 100644 tests/shell/testcases/bogons/nft-f/zero_length_devicename_assert create mode 100644 tests/shell/testcases/bogons/nft-f/zero_length_devicename_flowtable_assert
Signature · 1 line
2.39.3