[PATCH 0/9] Fix several bugs after running coverity

Thomas Haller thaller at redhat.com
Tue Jun 10 09:59:36 PDT 2014


Some of these patches don't fix real bugs but avoid
future warnings.

Thomas Haller (9):
  route/link: pass proper type to sizeof() for calloc() in vlan_parse()
  lib: reorder free() after printf("%p") statements
  route: remove unnecessary non-null check in pktloc and ematch
  cli: add error checking to nl-route-get about out-of-memory
  cls: fix array overrun in rtnl_ematch_opnd2txt()
  cache: fix crash in nl_cache_dump_filter() when omitting the params
    argument
  route/link: fix dangling pointer after rtnl_link_get_ifalias(link,
    NULL)
  netfilter/ct: fix calling nfnl_*_put() on uninitialized memory after
    nfnlmsg_*_parse()
  route/pktloc: read_pktlocs() always returned success status

 lib/cache.c               | 2 +-
 lib/cache_mngr.c          | 3 ++-
 lib/msg.c                 | 2 +-
 lib/netfilter/ct.c        | 3 +--
 lib/netfilter/exp.c       | 3 +--
 lib/netfilter/log_msg.c   | 3 +--
 lib/netfilter/queue_msg.c | 3 +--
 lib/object.c              | 4 ++--
 lib/route/cls/ematch.c    | 9 ++++-----
 lib/route/link.c          | 4 +++-
 lib/route/link/vlan.c     | 2 +-
 lib/route/pktloc.c        | 5 ++---
 src/nl-route-get.c        | 8 ++++++--
 13 files changed, 26 insertions(+), 25 deletions(-)

-- 
1.9.3




More information about the libnl mailing list