netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libnftnl PATCH 0/7] A bunch of covscan detected fixes
@ 2016-08-11 23:33 Phil Sutter
  2016-08-11 23:33 ` [libnftnl PATCH 1/7] set: prevent memleak in nftnl_jansson_parse_set_info() Phil Sutter
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Phil Sutter @ 2016-08-11 23:33 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

The following series aims at fixing a number of issues identified by
Coverity tool. Due to limited familiarity with the whole code layout, I
am not sure all of them are really valid, but I tried my best to verify
the concerns are legitimate and worth fixing.

Phil Sutter (7):
  set: prevent memleak in nftnl_jansson_parse_set_info()
  ruleset: Prevent memleak in nftnl_ruleset_snprintf_*() functions
  expr/ct: prevent array index overrun in ctkey2str()
  expr/limit: Drop unreachable code in limit_to_type()
  common: Avoid integer overflow in nftnl_batch_is_supported()
  Avoid returning uninitialized data
  ruleset: Initialize ctx.flags before calling nftnl_ruleset_ctx_set()

 src/chain.c      |  2 +-
 src/common.c     |  3 +++
 src/expr/ct.c    |  2 +-
 src/expr/limit.c |  1 -
 src/rule.c       |  2 +-
 src/ruleset.c    | 18 ++++++++++++++++++
 src/set.c        | 12 ++++++------
 src/table.c      |  2 +-
 8 files changed, 31 insertions(+), 11 deletions(-)

-- 
2.8.2


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

end of thread, other threads:[~2016-08-12  8:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 23:33 [libnftnl PATCH 0/7] A bunch of covscan detected fixes Phil Sutter
2016-08-11 23:33 ` [libnftnl PATCH 1/7] set: prevent memleak in nftnl_jansson_parse_set_info() Phil Sutter
2016-08-11 23:33 ` [libnftnl PATCH 2/7] ruleset: Prevent memleak in nftnl_ruleset_snprintf_*() functions Phil Sutter
2016-08-11 23:42   ` Pablo Neira Ayuso
2016-08-12  0:44     ` Phil Sutter
2016-08-12  8:38       ` Pablo Neira Ayuso
2016-08-11 23:33 ` [libnftnl PATCH 3/7] expr/ct: prevent array index overrun in ctkey2str() Phil Sutter
2016-08-11 23:33 ` [libnftnl PATCH 4/7] expr/limit: Drop unreachable code in limit_to_type() Phil Sutter
2016-08-11 23:33 ` [libnftnl PATCH 5/7] common: Avoid integer overflow in nftnl_batch_is_supported() Phil Sutter
2016-08-11 23:48   ` Pablo Neira Ayuso
2016-08-11 23:33 ` [libnftnl PATCH 6/7] Avoid returning uninitialized data Phil Sutter
2016-08-11 23:33 ` [libnftnl PATCH 7/7] ruleset: Initialize ctx.flags before calling nftnl_ruleset_ctx_set() Phil Sutter
2016-08-11 23:58 ` [libnftnl PATCH 0/7] A bunch of covscan detected fixes Pablo Neira Ayuso
2016-08-12  0:05   ` Pablo Neira Ayuso
2016-08-12  0:47     ` Phil Sutter
2016-08-12  8:40       ` 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).