From patchwork Wed Nov 25 15:19:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5785 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp5856613lad; Wed, 25 Nov 2026 07:19:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErG9MKfYCgtfvpm9svLJDol+nYzW0duC9ihv2MxpzuF4tFBNreaQDPBlRmcawEfa1lpTPFfgMvkjuEg=@openvpn.net X-Received: by 2002:a17:90b:2b46:b0:3b5:a3:4436 with SMTP id 98e67ed59e1d1-3b500a34661mr1168641a91.54.1795619999173; Wed, 25 Nov 2026 07:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795619999; cv=none; d=google.com; s=arc-20260327; b=nrIIQ91QDTkDn7WEI/HM9V0KdFeXpF5UFR0RvKEgnvUMqxYFmUa7A8CmS/5aNnWeL1 WZD/gZoUREwmjHogL4U3bTxpggfTpdezkuD/QUsGDr3mNj1jhYntv8WbeuZl4i2Sik0j 0loTS7J8n8wFuz97HwBxPgVVnKvxlFdfL80wMPt/sbGFt2WjQaHAHeiHCGinZK0/atlL 2/ZCc/BFleZOPs5VvIgChdKUYv3b2///BhtH/GAJvLnSFAICUWAD0gIp4p5F1QcztOr8 9Rd5WVQLkgHC2MRd08xusLF74+LPbMTFUzA9K00xZv5xKte3VDXKq71x0u6e67C75xUR sXJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=iiE8mOFiD9Sf1VJAvuRrYkNwkCMdVj5SBNEl2iZTuOc=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=guk+dOmwGM9Hm5ZlfRhlv/Ixv4C8714sk6E5seIFqaV9+bvBdY19aW+DAwUKaVkbyb q7vfnDSSKyc2s8TggRhugptZSgXWGYG5nZRL79V8oLyW+NmkpbmVUWCAoaC3VPff6VZi c+kwO/QsUUawFyUz0It/qLIRUK2eK8B2+qk8IH0YlxlNHb4fFfo5/F4UIaLb0rejxkJU PUHc3BAF6FhPK1kKvjCaOx6zZqFzUAqlbWy6PinBQEhC9nasUIJgh2nDfnbDwQQAz2MS ZEEn7hkFzUU0jFoqOGtZViv8cbsoUwxrLoyyOkQU4jj93j0Onplc55jYB+7FhpcUIdUZ JGEA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=WklpeZr5; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=GUAsG6Rw; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=bL50KLzm; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 41be03b00d2f7-cde6d13d3c0si26970492a12.400.2026.11.25.07.19.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2026 07:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=WklpeZr5; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=GUAsG6Rw; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=bL50KLzm; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=iiE8mOFiD9Sf1VJAvuRrYkNwkCMdVj5SBNEl2iZTuOc=; b=WklpeZr5poIMjH vYVOsB4Jz6VVCM5ZVxJIOMP2cG1atsfxhM3YsGfLwLL2l7YpkSA5CRQS6Prny67z5oARZ9zHj3m5y CHPRTi4Y8jwmL+0pYNh6QIxGkmSLAjWrX4zKtzraAlO1uz+qksvkHFLYXfHZmocY6GWODKqTx0gvE mdk=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xWEmp-000000007xx-3mrh; Wed, 25 Nov 2026 15:19:55 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xWEmg-000000007xm-1jdk for openvpn-devel@lists.sourceforge.net; Wed, 25 Nov 2026 15:19:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ldEXhkxr8vojrbY5sKdtZm4cvqcgPHNOopjU5XYubkQ=; b=GUAsG6Rwbm/u8p7ysBIbLEDl6G q+uyWEfXFWngbDRa36qC+44XK93XwCK448pkdNuiKaHJWXyOUT0Fr0p/uWkS+GvltfI8yW6UO++H4 Z8NbW+ZhNdaKLacpTPUQWs1JavRduywPRT6X2ibD9+YOWL28z6WDZf1fkslKABGpaux8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ldEXhkxr8vojrbY5sKdtZm4cvqcgPHNOopjU5XYubkQ=; b=bL50KLzmE8AZJws8gJk1heu9SS hVB6e5ockobf3uyEHJP+osIo6VhUx4zc8Yc7e4+R4smxpVv2SlfVSPFFnfJVTzudJBDuWWwPc/ljR H51QyD6Ylb4MneowzULegGdC+YJGfo5h3cvN98WLWbEjlxG3K8qvYa2GeK8WH+7XNoKk=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xWEme-000000005WE-2FYA for openvpn-devel@lists.sourceforge.net; Wed, 25 Nov 2026 15:19:46 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6APFJbWm010309 for ; Wed, 25 Nov 2026 16:19:37 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6APFJbYn010299 for openvpn-devel@lists.sourceforge.net; Wed, 25 Nov 2026 16:19:37 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Wed, 25 Nov 2026 16:19:31 +0100 Message-ID: <20261125151936.10270-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Frank Lichtenheld Also fix the two issues raised by this. Change-Id: I8d081c87af0d746a5e3a2382567f04332639622a Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/o [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xWEme-000000005WE-2FYA Subject: [Openvpn-devel] [PATCH v1] cppcheck: Add more printf-style functions X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1882844035975621180 X-GMAIL-MSGID: 1882844035975621180 From: Frank Lichtenheld Also fix the two issues raised by this. Change-Id: I8d081c87af0d746a5e3a2382567f04332639622a Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2343 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2343 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/dev-tools/openvpn-cppcheck-library.cfg b/dev-tools/openvpn-cppcheck-library.cfg index 0537b39..37195d8 100644 --- a/dev-tools/openvpn-cppcheck-library.cfg +++ b/dev-tools/openvpn-cppcheck-library.cfg @@ -6,6 +6,12 @@ + + + + + + diff --git a/dev-tools/openvpn-cppcheck-windows.cfg b/dev-tools/openvpn-cppcheck-windows.cfg index 932d586..dca2b07 100644 --- a/dev-tools/openvpn-cppcheck-windows.cfg +++ b/dev-tools/openvpn-cppcheck-windows.cfg @@ -2,6 +2,12 @@ + + + + + + diff --git a/src/openvpn/networking_iproute2.c b/src/openvpn/networking_iproute2.c index 6c4c8f4..b079757 100644 --- a/src/openvpn/networking_iproute2.c +++ b/src/openvpn/networking_iproute2.c @@ -112,7 +112,7 @@ { struct argv argv = argv_new(); - argv_printf(&argv, "%s link set dev %s up mtu %d", iproute_path, iface, mtu); + argv_printf(&argv, "%s link set dev %s up mtu %u", iproute_path, iface, mtu); argv_msg(M_INFO, &argv); openvpn_execve_check(&argv, ctx->es, S_FATAL, "Linux ip link set failed"); diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index be57d43..ad0fda2 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -466,7 +466,7 @@ size = bytes / sizeof(*data); if ((size == 0) || (size > 4096)) /* our startup data is 1024 wchars at the moment */ { - MsgToEventLog(M_SYSERR, L"malformed startup data: %lu bytes received", size); + MsgToEventLog(M_SYSERR, L"malformed startup data: %zu bytes received", size); ReturnError(pipe, ERROR_STARTUP_DATA, L"GetStartupData", 1, &exit_event); goto err; }