From: "cron2 (Code Review)" Date: Sun, 23 Nov 2025 13:37:57 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net Message-ID: <7b53105b2846ff36824f4a6da26a7cc260a2bbbc-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Z4TzecGg0X0="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: iservice: check for NULL pointer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: plaisthos , openvpn-devel --Z4TzecGg0X0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/13= 93?usp=3Demail ) Change subject: iservice: check for NULL pointer ...................................................................... iservice: check for NULL pointer Check if the list argument to ListContainsDomain() is NULL. Otherwise the call to wcsstr() will bail out. Reported-by: Marc Heuse Reported-by: stephan@...2953... Change-Id: Icd7c7b08e317aefd91a60bfc62e92cd8707b6fac Signed-off-by: Heiko Hund Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1393 Message-Id: <20251123120029.19736-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 611.html Signed-off-by: Gert Doering --- M src/openvpnserv/interactive.c 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index 860375d..07ca7c9 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -2106,7 +2106,7 @@ ListContainsDomain(PCWSTR list, PCWSTR domain, size_t len) { PCWSTR match =3D list; - while (TRUE) + while (match) { match =3D wcsstr(match, domain); if (!match) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1393?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Icd7c7b08e317aefd91a60bfc62e92cd8707b6fac Gerrit-Change-Number: 1393 Gerrit-PatchSet: 2 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --Z4TzecGg0X0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

iservice: check for NULL pointer

Check if= the list argument to ListContainsDomain() is NULL. Otherwise
the call t= o wcsstr() will bail out.

Reported-by: Marc Heuse <marc@...2966...= .>
Reported-by: stephan@...2953...
Change-Id: Icd7c7b08e317aefd91a= 60bfc62e92cd8707b6fac
Signed-off-by: Heiko Hund <heiko@...2662...>=
Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: https://g= errit.openvpn.net/c/openvpn/+/1393
Message-Id: <20251123120029.19736-= 1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1224...= sts.sourceforge.net/msg34611.html
Signed-off-by: Gert Doering <gert@...220...= ..1296...>
---
M src/openvpnserv/interactive.c
1 file changed, = 1 insertion(+), 1 deletion(-)

diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive=
.c
index 860375d..07ca7c9 100644
--- a/src/= openvpnserv/interactive.c
+++ b/src/openvpnserv/interactive= .c
@@ -2106,7 +2106,7 @@
ListContainsDomai= n(PCWSTR list, PCWSTR domain, size_t len)
{
PCWSTR match =3D list;
- while (TRUE)
+ while (match)
{
matc= h =3D wcsstr(match, domain);
if (!match)

To view, visit change 1393. To unsubscribe, or for h= elp writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icd7c7b08e317aefd91a60bfc62e= 92cd8707b6fac
Gerrit-Change-Number: 1393
Gerrit-PatchSet: 2
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>
= --Z4TzecGg0X0=--