Message ID | 20240516193700.212737-1-mkp@redhat.com |
---|---|
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ck4KUaSd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VgL2l6RL3z1yfq for <incoming@patchwork.ozlabs.org>; Fri, 17 May 2024 05:37:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id D002C41DA4; Thu, 16 May 2024 19:37:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id pXi38G0siRrJ; Thu, 16 May 2024 19:37:16 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org DE93C40498 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ck4KUaSd Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id DE93C40498; Thu, 16 May 2024 19:37:15 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id B4B85C0077; Thu, 16 May 2024 19:37:15 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0EACBC0037 for <dev@openvswitch.org>; Thu, 16 May 2024 19:37:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F3E286081E for <dev@openvswitch.org>; Thu, 16 May 2024 19:37:13 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Bie4Pfl5akFh for <dev@openvswitch.org>; Thu, 16 May 2024 19:37:13 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=mkp@redhat.com; receiver=<UNKNOWN> DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 35CF260EDD Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 35CF260EDD Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ck4KUaSd Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 35CF260EDD for <dev@openvswitch.org>; Thu, 16 May 2024 19:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715888231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g3bHdkILVaDISKft5BB1C8z6pCve3DosTC8XqQkCbmI=; b=ck4KUaSd/VF/YyPwwesFMs9Yi3HB6tfLVJASGVo4WXSAhHfmUSYhMkG+7UU6KzD/wFaISu 7qssai7chUfJAlTc2sYmy7Gm1QFlxz3W7ZOQSllqPHRGS/x2P0FZte4vk5oHnLxbHAqljW 0I1dt3t5AOLoWc4vGQOxcslJHcNFnZ0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-344-Kv_5Dqu4NsWnP_B4qtGGkw-1; Thu, 16 May 2024 15:37:08 -0400 X-MC-Unique: Kv_5Dqu4NsWnP_B4qtGGkw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6DDFD800CB0 for <dev@openvswitch.org>; Thu, 16 May 2024 19:37:08 +0000 (UTC) Received: from mpattric.remote.csb (unknown [10.22.9.75]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC9A1561A; Thu, 16 May 2024 19:37:07 +0000 (UTC) From: Mike Pattrick <mkp@redhat.com> To: dev@openvswitch.org Date: Thu, 16 May 2024 15:36:55 -0400 Message-Id: <20240516193700.212737-1-mkp@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH 0/5] clang: Fix Clang's static analyzer detections. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
clang: Fix Clang's static analyzer detections.
|
expand
|
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(-)