| Message ID | 11aa8b9c09fc615599857e7019fed07294bf914a-HTML@gerrit.openvpn.net |
|---|---|
| State | Superseded |
| Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:c127:b0:5e7:b9eb:58e8 with SMTP id
jm39csp791904mab;
Fri, 24 Jan 2025 04:43:26 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCV7eo4N822t1cwaTOAuA9zTuFJghTZRt9eK+7auA5133jYrd7V6o9WqnhW+sBAZYV6UGYGQtz/lrS0=@openvpn.net
X-Google-Smtp-Source:
AGHT+IGIxJ8G4Plt2Y0f+AYDH24K2h31gN1kYr941TfhMOK6BYNV9anXuEGm5jQ73OsVvpSV+eiz
X-Received: by 2002:a05:6808:8303:b0:3ec:d30f:60e6 with SMTP id
5614622812f47-3f19fd58febmr15608054b6e.38.1737722606222;
Fri, 24 Jan 2025 04:43:26 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1737722606; cv=none;
d=google.com; s=arc-20240605;
b=gp+yeAS10EYNJ7BrOFULtyVtKuWy/zcczGibnHP6m40D6U+Yu3dDg+woozgwS+2b7/
a3gGs5ik1dGkJQt5gUG3697x48NVzauKCuVuj5Ws1HldT8WuE7DNIR0p7DHVrHaIIYm6
RoNb65VEw9AFTQ1t503efGVzlFNHKx1f9/ZNaNQv637lP5RYk5OLJqJgAiy3ChrCpntp
yHYN2aI+Kie26E2wwNq1cl55w5y081VgKnnR0lrWKkBNFhrtJMQdHNL3OELhEjtBRef5
vt4DYGSB7lJ/xVbC0DrOn4Lz5jpSjwonntr+TsoLzacRZHsprIuF0gBjG8A9yAAYzkev
D1vg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=errors-to:cc:reply-to:list-subscribe:list-help:list-post
:list-archive:list-unsubscribe:list-id:precedence:subject:user-agent
:mime-version:message-id:references:auto-submitted:to:date:from
:dkim-signature:dkim-signature:dkim-signature;
bh=1SEEk+K8I8Qc3VMw61YUwH4E18Kn6oP82eM5eb548pM=;
fh=U7wEyxtwz2o5+UdevFSA47vNeG9knhWH0KV//QhD5a0=;
b=IGha9NW2r16+audXhB0m+NeE/9ZtVhUlemEzutWxyUBuf6nhFA6oHji/qMsW3Oer1z
cZqQZ3mXfBdMAXna+gCAQfP3LJ3iFBw8oVYrp+g+spsYAALh2NLa5l9pwmvtmWsVE/M4
g0/pg91bL5z5k/Q4Zhr+GtD479PstQ/IIWvwLUS9Hh+t8nFST2fqp3tPNoEy3DprssUV
AiTsc0yvuxY+JjyVSJ5+1KFsl8Cvu70xDJpOY+1QGCTRrNe3N02uvqP5EoWLhv9YSHRA
9Rk5nfnphUHezklDF6l0Mb5kl2S+zAG/3mUSBFRm3vHVklmfHKkdlFemLSyLPZU4QX5N
Yu/w==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=EVplNy76;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=XQFjweiU;
dkim=neutral (body hash did not verify) header.i=@openvpn.net
header.s=google header.b=Yp6Baq+u;
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=openvpn.net;
dara=fail header.i=@openvpn.net
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
5614622812f47-3f1f084fd53si1298198b6e.20.2025.01.24.04.43.26
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Fri, 24 Jan 2025 04:43:26 -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=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=EVplNy76;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=XQFjweiU;
dkim=neutral (body hash did not verify) header.i=@openvpn.net
header.s=google header.b=Yp6Baq+u;
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=openvpn.net;
dara=fail header.i=@openvpn.net
Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com)
by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1tbJ1u-0005gI-8d;
Fri, 24 Jan 2025 12:43:21 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <gerrit@openvpn.net>) id 1tbJ1t-0005gC-80
for openvpn-devel@lists.sourceforge.net;
Fri, 24 Jan 2025 12:43:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Type:Content-Transfer-Encoding:MIME-Version
:Message-ID:Reply-To:References:Subject:List-Unsubscribe:List-Id:Cc:To:Date:
From:Sender:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=+nyMfKZ68+a+06KI5h4dJjluTEluwublrjz6mQGwLnc=; b=EVplNy76SNw7kJqN3YlspHuymW
E7FC33QpppSh5PAPqM8xN6qzTu6mS6lKgHlTlS+C0pDVCU2pqEDQ5aX77nRk1NMSd1RQY61GabNWI
qJFGoaL95SRpYBh1A4DkPNsPgU0xIRoVqRaE/TwfPagP1TfWhb21Ttu95yAiXGy7H5mk=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Reply-To:
References:Subject:List-Unsubscribe:List-Id:Cc:To:Date:From:Sender:Content-ID
:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:
Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help:List-Subscribe:List-Post:
List-Owner:List-Archive; bh=+nyMfKZ68+a+06KI5h4dJjluTEluwublrjz6mQGwLnc=; b=X
QFjweiURfUutKI3Nc8bBzQ5ca1qlcT7OdQ/ZnrbWUOFSlEQIxRYkPKikVw0ZnDEh+wMouhcyps8XE
eKyW/oa0k3kuIS+znY+mLn4PYvKy5Wi4kMyzpKo0VoJR0F9cldpJcx6iwIB2/v5/5+TOw8+ulrFA7
s9aQFMohn/bTKgFk=;
Received: from mail-wr1-f42.google.com ([209.85.221.42])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95)
id 1tbJ1r-0005i3-IM for openvpn-devel@lists.sourceforge.net;
Fri, 24 Jan 2025 12:43:20 +0000
Received: by mail-wr1-f42.google.com with SMTP id
ffacd0b85a97d-3862a921123so1332580f8f.3
for <openvpn-devel@lists.sourceforge.net>;
Fri, 24 Jan 2025 04:43:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=openvpn.net; s=google; t=1737722588; x=1738327388;
darn=lists.sourceforge.net;
h=user-agent:content-disposition:content-transfer-encoding
:mime-version:message-id:reply-to:references:subject
:list-unsubscribe:list-id:auto-submitted:cc:to:date:from:from:to:cc
:subject:date:message-id:reply-to;
bh=+nyMfKZ68+a+06KI5h4dJjluTEluwublrjz6mQGwLnc=;
b=Yp6Baq+uemSMIiQFIC74x4nrMdyqRr4h31HX9B5dJsK1raC5wvZDhBart2v40YLdlp
6lOdxRsgPBt0p3AG96ATvzHWPzbwH4SpOgoYWyx7srcWPEdBGrB5uZPfulF0PDzW0Fqx
32kngapj+M5F4LX8cTUSj5Tu+WdXn3dn9B1L9zm6fHmLwx80xrKUYIgIVG7q2M9+ranR
iEiSpv96ABRvskYHOtQ0OtjCisZdCk58mQMFFQ44IgQleqiHmlcmq0EuwrW0vsmXFq8i
iOrwUTTHlVUAAtrGzXWGkvuAcJjaPhETBKL56nhYP4lZbesfhyp4Ovho00kHjsX7dLRA
e3PA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1737722588; x=1738327388;
h=user-agent:content-disposition:content-transfer-encoding
:mime-version:message-id:reply-to:references:subject
:list-unsubscribe:list-id:auto-submitted:cc:to:date:from
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=+nyMfKZ68+a+06KI5h4dJjluTEluwublrjz6mQGwLnc=;
b=NIWE0TbPqPQZ5TSc+eUhHo97ObQwdRrDgOBQ+m11MMR7PFkc59NELf0B947irhzZAE
P1sSFhVx9GdXGt9DzGjMIRmvRyWIWMnddcozKDX4uwYUp3wPYqmzKWPrLZPx3WXyMjHS
Dur6XWrdvjAtOwrdtfZNBwpZJzMrqvJHgiW00NyKsN6C3iZNNwv4y7VvI/VYNl4fYyvU
XfUnx0m6aIzlD5d0xveEVOzC4KdNV/u3RhBPjVEiv+tRCBxHzHBg7s9yZcFePoiKcjQy
5EDhpvmtyfiHHWXaKjL6+/vnCw/wHk4L09VgdBrvbO6SW9mPSVHvilbqc478knlIrIhK
P5zg==
X-Gm-Message-State: AOJu0Yz3sZN1HH0WpJAlnAgmC/PRRUPqx3oXh0AakxZ/jqPLplxD/0SM
53yZ3iIp7m6pYfy/5iAFjaVCXpN1mH8Rq8fodqggcNm89Z2IHl2OkHEqcYZJZdeq4YJLXWaAuCv
T
X-Gm-Gg: ASbGncvVgQokTEL//cs4vsq32Ij3A2rbN2VvYKlpRJy6kbEAFu4sUwknMku3NshrO/A
UQYkYpvQW5e87Wv2talO5+wjgHcibWSntNFdWIClFhQHMhuD+zHOzHNuGnM+xqpDSiEa5/qgZyB
yGypf53LIRlSTu69g2fBz2aCQTmh8IE1azQFZ+w/DgkkrY4OyBbEaEx3yEchYctgprMCbZ4RPqQ
b+28VKUJUkhDIRgUG5m0mccHhZ914UuvyQDS9ecz0qGe8aOHIlAOGjQpJLi6+hqzNlIQXqi36c0
4izVtAIPq83SjVKYC0JrINHvCA1MwyCWdVJ8HpShh36AyNbP3o8zgfRzhppFjBsfFcrvpsva
X-Received: by 2002:a05:6000:1f81:b0:386:3213:5b9b with SMTP id
ffacd0b85a97d-38bf57a9477mr31553931f8f.43.1737722587821;
Fri, 24 Jan 2025 04:43:07 -0800 (PST)
Received: from gerrit.openvpn.in
(ec2-18-159-0-78.eu-central-1.compute.amazonaws.com. [18.159.0.78])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-38c2a17d5d4sm2544633f8f.21.2025.01.24.04.43.07
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 24 Jan 2025 04:43:07 -0800 (PST)
From: "its_Giaan (Code Review)" <gerrit@openvpn.net>
X-Google-Original-From: "its_Giaan (Code Review)" <gerrit@gerrit.openvpn.in>
X-Gerrit-PatchSet: 1
Date: Fri, 24 Jan 2025 12:43:06 +0000
To: plaisthos <arne-openvpn@rfc2549.org>, flichtenheld <frank@lichtenheld.com>
Auto-Submitted: auto-generated
X-Gerrit-MessageType: newchange
X-Gerrit-Change-Id: I0542df021ae0ba9c982335fed7bbd10ed326dd0f
X-Gerrit-Change-Number: 875
X-Gerrit-Project: openvpn
X-Gerrit-ChangeURL: <http://gerrit.openvpn.net/c/openvpn/+/875?usp=email>
X-Gerrit-Commit: 18e97fbf3f8d5150bb2e70007fc2265a4eadbd82
References:
<gerrit.1737722584000.I0542df021ae0ba9c982335fed7bbd10ed326dd0f@gerrit.openvpn.net>
Message-ID: <11aa8b9c09fc615599857e7019fed07294bf914a-HTML@gerrit.openvpn.net>
MIME-Version: 1.0
User-Agent: Gerrit/3.8.2
X-Spam-Score: -0.2 (/)
X-Spam-Report: Spam detection software,
running on the system "util-spamd-2.v13.lw.sourceforge.com",
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: Attention is currently required from: flichtenheld,
plaisthos.
Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit
Content analysis details: (-0.2 points, 6.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[209.85.221.42 listed in sa-trusted.bondedsender.org]
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[209.85.221.42 listed in bl.score.senderscore.com]
-0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
[209.85.221.42 listed in wl.mailspike.net]
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [209.85.221.42 listed in list.dnswl.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP
0.0 HTML_MESSAGE BODY: HTML included in message
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily
valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
-0.0 T_SCC_BODY_TEXT_LINE No description available.
0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted
Colors in HTML
X-Headers-End: 1tbJ1r-0005i3-IM
Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix PASS_BY_VALUE
issue in options_postprocess_mutate_le()
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Reply-To: gianmarco@mandelbit.com, arne-openvpn@rfc2549.org,
openvpn-devel@lists.sourceforge.net, frank@lichtenheld.com
Cc: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Content-Type: multipart/mixed; boundary="===============1939407388110499736=="
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1822134219497956423?=
X-GMAIL-MSGID: =?utf-8?q?1822134219497956423?=
X-getmail-filter-classifier: gerrit message type newchange
|
| Series |
[Openvpn-devel,XS] Change in openvpn[master]: Fix PASS_BY_VALUE issue in options_postprocess_mutate_le()
|
expand
|
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index c938999..bd5c056 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -3323,12 +3323,12 @@ } static void -options_postprocess_mutate_le(struct connection_entry ce, struct local_entry *le) +options_postprocess_mutate_le(struct connection_entry *ce, struct local_entry *le) { /* use the global port if none is specified */ if (!le->port) { - le->port = ce.local_port; + le->port = ce->local_port; } } @@ -3777,7 +3777,7 @@ { for (i = 0; i < o->ce.local_list->len; i++) { - options_postprocess_mutate_le(o->ce, o->ce.local_list->array[i]); + options_postprocess_mutate_le(&o->ce, o->ce.local_list->array[i]); } } else
Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/875?usp=email to review the following change. Change subject: Fix PASS_BY_VALUE issue in options_postprocess_mutate_le() ...................................................................... Fix PASS_BY_VALUE issue in options_postprocess_mutate_le() Fix issue reported by Coverity: CID 1641424: Performance inefficiencies (PASS_BY_VALUE) Passing parameter ce of type "struct connection_entry" (size 208 bytes) by value, which exceeds the low threshold of 128 bytes. Commit 8466c2ca unintentionally introduced a performance penalty due to passing struct connection_entry 'ce' by value to options_postprocess_mutate_le(). fix this by passing 'ce' by address. Change-Id: I0542df021ae0ba9c982335fed7bbd10ed326dd0f Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com> --- M src/openvpn/options.c 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/75/875/1