From: "d12fk (Code Review)" Date: Sun, 23 Nov 2025 06:47:25 +0000 References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="PxeTJM+fvBw="; 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 --PxeTJM+fvBw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1391?usp=3Demail to review the following change. 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/1 diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index 37752b2..f31a8a9 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= + 1; 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Iabad046c930dd0f38ec50d1c43d8b3288816df7d Gerrit-Change-Number: 1391 Gerrit-PatchSet: 1 Gerrit-Owner: d12fk Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --PxeTJM+fvBw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

d12fk would like plaisthos to review this change.

V= iew Change

iservice: return correct size when domains =
are truncated

In case not all domains can be converted in the availa= ble buffer, return
the size of the already converted domains size plus t= he second terminating
zero for the MULTI_SZ.

Reported-by: Marc He= use <marc@...2953...>
Reported-by: stephan@...2953...
Change-Id= : Iabad046c930dd0f38ec50d1c43d8b3288816df7d
Signed-off-by: Heiko Hund &l= t;heiko@...2662...>
---
M src/openvpnserv/interactive.c
1 file = changed, 1 insertion(+), 1 deletion(-)

git pull =
ssh://gerrit.openvpn.net:29418/openvpn refs/changes/91/1391/1
diff =
--git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c
index 37752b2..f31a8a9 100644
--- a/src/openvpns= erv/interactive.c
+++ b/src/openvpnserv/interactive.c
@@ -2214,7 +2214,7 @@
{<= br> /* Domain doesn't fit, bad luck if it'= ;s the first one */
*pos =3D '\0&#= 39;;
- = *size =3D converted_size =3D=3D 0 ? 0 : *size + 1;
+ *size =3D converted_s= ize =3D=3D 0 ? 0 : converted_size + 1;
= return ERROR_MORE_DATA;
}


To view, visit change 1391. To unsubscri= be, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iabad046c930dd0f38ec50d1c43d= 8b3288816df7d
Gerrit-Change-Number: 1391
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --PxeTJM+fvBw=--