From: "d12fk (Code Review)" Date: Sun, 23 Nov 2025 20:04:07 +0000 In-Reply-To: References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, gert@...1296... Message-ID: <3b93648041e474eb8cee11a7369f8cdaf929c4c7-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="8LgtM5ow+TM="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: iservice: return correct size when domains are truncated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --8LgtM5ow+TM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, plaisthos. Hello cron2, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1391?usp=3Demail to look at the new patch set (#3). The following approvals got outdated and were removed: Code-Review-1 by cron2 Change subject: iservice: return correct size when domains are truncated ...................................................................... iservice: return correct size when domains are truncated In case not all domains can be converted in the available buffer, return the size of the already converted domains size plus the second terminating zero for the MULTI_SZ. Reported-by: Marc Heuse Reported-by: stephan@...2953... Change-Id: Iabad046c930dd0f38ec50d1c43d8b3288816df7d Signed-off-by: Heiko Hund --- M src/openvpnserv/interactive.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/91/1391/3 diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index 9c533c1..5fb7f2b 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -2214,7 +2214,7 @@ { /* Domain doesn't fit, bad luck if it's the first one = */ *pos =3D '\0'; - *size =3D converted_size =3D=3D 0 ? 0 : *size + 1; + *size =3D converted_size =3D=3D 0 ? 0 : converted_size= + one_glyph; return ERROR_MORE_DATA; } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1391?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Iabad046c930dd0f38ec50d1c43d8b3288816df7d Gerrit-Change-Number: 1391 Gerrit-PatchSet: 3 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 --8LgtM5ow+TM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: cron2, plaisthos.

d12fk uploaded patch set #3 to this change.

View Change

The following approvals got outdated and were removed: Code-Review-1 by cron2

iservice: return correct size when =
domains are truncated

In case not all domains can be converted in th= e available buffer, return
the size of the already converted domains siz= e plus the second terminating
zero for the MULTI_SZ.

Reported-by:= Marc Heuse <marc@...2953...>
Reported-by: stephan@...2953...
C= hange-Id: Iabad046c930dd0f38ec50d1c43d8b3288816df7d
Signed-off-by: Heiko= Hund <heiko@...2662...>
---
M src/openvpnserv/interactive.c1 file changed, 1 insertion(+), 1 deletion(-)

g=
it pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/91/1391/3
=
diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive=
.c
index 9c533c1..5fb7f2b 100644
--- a/src/= openvpnserv/interactive.c
+++ b/src/openvpnserv/interactive= .c
@@ -2214,7 +2214,7 @@
{=
/* Domain doesn't fit, bad luck i= f it's the first one */
*pos =3D &= #39;\0';
- = *size =3D converted_size =3D=3D 0 ? 0 : *size + 1;
+ *size =3D con= verted_size =3D=3D 0 ? 0 : converted_size + one_glyph;
= return ERROR_MORE_DATA;
}=


To view, visit change 1391. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iabad046c930dd0f38ec50d1c43d= 8b3288816df7d
Gerrit-Change-Number: 1391
Gerrit-PatchSet: 3
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
= --8LgtM5ow+TM=--