Skip to content

Some fixes for JSON support

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libnftables: Print errors before freeing commandssrc/libnftables.c+2 -20 replies
2/5parser_json: Duplicate chain name when parsing jump verdictsrc/parser_json.c+2 -10 replies
3/5parser_json: Use xstrdup() when parsing rule commentsrc/parser_json.c+1 -10 replies
4/5json: Fix memleaks in echo supportsrc/parser_json.c+18 -105 replies
5/5parser_json: Respect base chain prioritysrc/parser_json.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [nft PATCH 0/5] Some fixes for JSON support

The first patch is actually a generic libnftables fix, it prevents a segfault when reporting parser errors.

The remaining fixes were found when trying to parse a ruleset prepared by firewalld (JSON API usage is WiP there). Seems like increasing test coverage really is in order.

Phil Sutter (5):
libnftables: Print errors before freeing commands
parser_json: Duplicate chain name when parsing jump verdict
parser_json: Use xstrdup() when parsing rule comment
json: Fix memleaks in echo support
parser_json: Respect base chain priority

 src/libnftables.c |  4 ++--
 src/parser_json.c | 34 ++++++++++++++++++++++------------
 2 files changed, 24 insertions(+), 14 deletions(-)
Signature · 1 line
2.20.1