mbox series

[ovs-dev,0/5] clang: Fix Clang's static analyzer detections.

Message ID 20240516193700.212737-1-mkp@redhat.com
Headers show
Series clang: Fix Clang's static analyzer detections. | expand

Message

Mike Pattrick May 16, 2024, 7:36 p.m. UTC
Clang's static analyzer has identified several instances of uninitialized
variable usage and null pointer dereferencing that while not likely, is
possible. These mostly included making sure that a variable is properly set
or error code properly returned in every error condition.

Signed-off-by: Mike Pattrick <mkp@redhat.com>


Mike Pattrick (5):
  netdev-offload: Fix Clang's static analyzer 'null pointer dereference'
    warnings.
  netdev-native-tnl: Fix Clang's static analyzer 'uninitialized value'
    warnings.
  dpctl: Fix Clang's static analyzer 'garbage value' warnings.
  socket: Fix Clang's static analyzer 'garbage value' warnings.
  netdev-linux: Fix Clang's static analyzer uninitialized values
    warnings.

 lib/dpctl.c             | 5 ++---
 lib/netdev-linux.c      | 7 ++++++-
 lib/netdev-native-tnl.c | 4 +++-
 lib/netdev-offload.c    | 9 ++++++++-
 lib/socket-util.c       | 2 +-
 5 files changed, 20 insertions(+), 7 deletions(-)