From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V71lUYUR; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 133075A0262 for ; Thu, 09 Jul 2026 00:32:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783549929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GPaTqaQsqiOZKvuBwjc03pPZKZKLXvEwxpcr3L7T4V0=; b=V71lUYURHfzx0k6sglpYYaKVrnjBjAYLw+pB89MLPDoaB8+gboA2yjyVx1DgCxve6o2CSr 6L/ULETrUTBx5aDROQWz2CgC8Mu8eDWLMchLIb2Obs2z3+2spQsigVpEXYbAvd1oxtidXW u2Zf5QWhDlfjRXfNrRPsI1BPfyXjETs= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-57-1DEAIVx-OPOAeEkA9Iiq1Q-1; Wed, 08 Jul 2026 18:32:06 -0400 X-MC-Unique: 1DEAIVx-OPOAeEkA9Iiq1Q-1 X-Mimecast-MFC-AGG-ID: 1DEAIVx-OPOAeEkA9Iiq1Q_1783549925 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9304819560A5; Wed, 8 Jul 2026 22:32:05 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5C7211955F75; Wed, 8 Jul 2026 22:32:04 +0000 (UTC) From: Jon Maloy To: sbrivio@redhat.com, david@gibson.dropbear.id.au, jmaloy@redhat.com, passt-dev@passt.top Subject: [PATCH 0/7] Fix issues and false positives in code coverge tool Date: Wed, 8 Jul 2026 18:31:56 -0400 Message-ID: <20260708223203.885345-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: -lkL4BihEiMGMtMfoqNgCzVnISFObXfgB9Fzx38WiOo_1783549925 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: 5JWJ5SPHGXXLY2XHD5C2AAMAWNI4IRUH X-Message-ID-Hash: 5JWJ5SPHGXXLY2XHD5C2AAMAWNI4IRUH X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This series fixes minor issues found by code coverage tools in the main passt code and in documentation examples. The core code changes addresses missing fd initialisations and explicit invariant checks for unsigned arithmetic. We also fix address buffer handling, type mismatches, uninitialised variables, and resource leaks in the documentation example code. Jon Maloy (7): passt: Initialise listening socket fds to -1 udp_vu: Assert iov_tail_clone() return before assigning to msg_iovlen tap: Assert IPv6 tail size before subtracting header length doc/migration: Use strncpy() for socket path and fix argv access doc/migration: Fix buffer type mismatch in recv() call doc/platform-requirements: Initialise va_list before va_start() doc/platform-requirements: Close leaked sockets in test_close_dup() doc/migration/source.c | 2 +- doc/migration/target.c | 10 ++++------ doc/platform-requirements/common.h | 2 +- doc/platform-requirements/udp-close-dup.c | 3 +++ passt.c | 3 +++ tap.c | 4 +++- udp_vu.c | 7 +++++-- 7 files changed, 20 insertions(+), 11 deletions(-) -- 2.52.0