netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 0/5] Some fixes for JSON support
@ 2019-02-26 21:13 Phil Sutter
  2019-02-26 21:13 ` [nft PATCH 1/5] libnftables: Print errors before freeing commands Phil Sutter
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Phil Sutter @ 2019-02-26 21:13 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

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(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-28 11:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 21:13 [nft PATCH 0/5] Some fixes for JSON support Phil Sutter
2019-02-26 21:13 ` [nft PATCH 1/5] libnftables: Print errors before freeing commands Phil Sutter
2019-02-26 21:13 ` [nft PATCH 2/5] parser_json: Duplicate chain name when parsing jump verdict Phil Sutter
2019-02-26 21:13 ` [nft PATCH 3/5] parser_json: Use xstrdup() when parsing rule comment Phil Sutter
2019-02-26 21:13 ` [nft PATCH 4/5] json: Fix memleaks in echo support Phil Sutter
2019-02-27 10:29   ` Pablo Neira Ayuso
2019-02-27 11:15     ` Phil Sutter
2019-02-27 22:29       ` Pablo Neira Ayuso
2019-02-28 10:30         ` Phil Sutter
2019-02-28 11:23           ` Pablo Neira Ayuso
2019-02-26 21:13 ` [nft PATCH 5/5] parser_json: Respect base chain priority Phil Sutter
2019-02-27 10:26 ` [nft PATCH 0/5] Some fixes for JSON support Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).