Skip to content

fix analyzer warnings

Stephen Hemminger netdev 1 version Applied

Status from this message: This series was applied to iproute2/iproute2.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11lib/fs: fix file leak in task_get_namelib/fs.c+3 -10 replies
2/11ipmaddr: fix dereference of NULL on malloc() failureip/ipmaddr.c+8 -10 replies
3/11iproute_lwtunnel: fix possible use of NULL when malloc() failsip/iproute_lwtunnel.c+13 -50 replies
4/11tc_filter: fix unitialized warningtc/tc_filter.c+4 -30 replies
5/11tc_util fix unitialized warningtc/tc_util.c+1 -10 replies
6/11tc_exec: don't dereference NULL on calloc failuretc/tc_exec.c+4 -00 replies
7/11m_action: fix warning of overwrite of const stringtc/m_action.c+2 -20 replies
8/11netem: fix NULL deref on allocation failuretc/q_netem.c+3 -00 replies
9/11nstat: fix potential NULL derefmisc/nstat.c+6 -00 replies
10/11rdma/utils: fix some analyzer warningsrdma/utils.c+10 -00 replies
11/11tc/prio: handle possible truncated kernel responsetc/q_prio.c+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH iproute2 00/11] fix analyzer warnings

Address some (but not all) of the issues reported by gcc 13 new analyzer. These are mostly just issues like not checking for malloc() failure.

Stephen Hemminger (11):
lib/fs: fix file leak in task_get_name
ipmaddr: fix dereference of NULL on malloc() failure
iproute_lwtunnel: fix possible use of NULL when malloc() fails
tc_filter: fix unitialized warning
tc_util fix unitialized warning
tc_exec: don't dereference NULL on calloc failure
m_action: fix warning of overwrite of const string
netem: fix NULL deref on allocation failure
nstat: fix potential NULL deref
rdma/utils: fix some analyzer warnings
tc/prio: handle possible truncated kernel response

 ip/ipmaddr.c          |  9 ++++++++-
 ip/iproute_lwtunnel.c | 18 +++++++++++++-----
 lib/fs.c              |  4 +++-
 misc/nstat.c          |  6 ++++++
 rdma/utils.c          | 10 ++++++++++
 tc/m_action.c         |  4 ++--
 tc/q_netem.c          |  3 +++
 tc/q_prio.c           |  2 ++
 tc/tc_exec.c          |  4 ++++
 tc/tc_filter.c        |  7 ++++---
 tc/tc_util.c          |  2 +-
 11 files changed, 56 insertions(+), 13 deletions(-)
Signature · 1 line
2.39.2