Skip to content

Covscan: Misc fixes

Phil Sutter netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesIn review
  2. v27 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Dropped patch 1 since v2 discussion is still inconclusive.
- Replaced patch 2 by a more appropriate one given feedback from v2.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ss: Make struct tcpstat fields 'timer' and 'timeout' unsignedmisc/ss.c+3 -50 replies
2/6ss: Make sure scanned index value to unix_state_map is sanemisc/ss.c+2 -10 replies
3/6netem/maketable: Check return value of fscanf()netem/maketable.c+2 -20 replies
4/6lib/bpf: Check return value of write()lib/bpf.c+2 -10 replies
5/6lib/fs: Fix and simplify make_path()lib/fs.c+5 -150 replies
6/6lib/libnetlink: Don't pass NULL parameter to memcpy()lib/libnetlink.c+4 -21 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [iproute PATCH v3 0/6] Covscan: Misc fixes

This series collects patches from v1 addressing miscellaneous issues detected by covscan.

Changes since v2:
- Dropped patch 1 since v2 discussion is still inconclusive.
- Replaced patch 2 by a more appropriate one given feedback from v2.

Phil Sutter (6):
ss: Make struct tcpstat fields 'timer' and 'timeout' unsigned
ss: Make sure scanned index value to unix_state_map is sane netem/maketable: Check return value of fscanf() lib/bpf: Check return value of write()
lib/fs: Fix and simplify make_path() lib/libnetlink: Don't pass NULL parameter to memcpy()

 lib/bpf.c         |  3 ++-
 lib/fs.c          | 20 +++++---------------
 lib/libnetlink.c  |  6 ++++--
 misc/ss.c         | 11 +++++------
 netem/maketable.c |  4 ++--
 5 files changed, 18 insertions(+), 26 deletions(-)
Signature · 1 line
2.13.1