From: "cron2 (Code Review)"
Date: Sun, 23 Nov 2025 13:37:54 +0000
In-Reply-To:
References:
Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515...,
openvpn-devel@lists.sourceforge.net
Message-ID: <7b53105b2846ff36824f4a6da26a7cc260a2bbbc-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="PrzqF1UoNFM="; 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 , plaisthos
Cc: openvpn-devel
--PrzqF1UoNFM=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 has uploaded a new patch set (#2) to the change originally created by=
d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/1393?usp=3Demail )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
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(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/93/1393/2
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: newpatchset
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
--PrzqF1UoNFM=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 upl=
oaded patch set #2 to the change originally created by d12fk.
<=
p>View C=
hange
The following approvals got outdated and were removed:
Code-Review+2 by cron2
iservice: check for NULL pointer
Check if the list argument to ListContainsDomain() is NULL. Otherwise<=
br>the call to wcsstr() will bail out.
Reported-by: Marc Heuse <m=
arc@...2953...>
Reported-by: stephan@...2953...
Change-Id: Icd7c7b=
08e317aefd91a60bfc62e92cd8707b6fac
Signed-off-by: Heiko Hund <heiko@...220...=
..2662...>
Acked-by: Gert Doering <gert@...1296...>
Gerrit U=
RL: https://gerrit.openvpn.net/c/openvpn/+/1393
Message-Id: <20251123=
120029.19736-1-gert@...1296...>
URL: https://www.mail-archive.com/ope=
nvpn-devel@lists.sourceforge.net/msg34611.html
Signed-off-by: Gert Doeri=
ng <gert@...1296...>
---
M src/openvpnserv/interactive.c
1 f=
ile changed, 1 insertion(+), 1 deletion(-)
git p=
ull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/93/1393/2
d=
iff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c=
span>
index 860375d..07ca7c9 100644
--- a/src/open=
vpnserv/interactive.c
+++ b/src/openvpnserv/interactive.c=
span>
@@ -2106,7 +2106,7 @@
ListContainsDomain(PC=
WSTR list, PCWSTR domain, size_t len)
{
=
PCWSTR match =3D list;
- while (TRUE)
=
+ while (match)
{
match =
=3D wcsstr(match, domain);
if (!match)
<=
span>
To view, visit change 1393. To unsubscribe, or for hel=
p writing mail filters, visit settings.
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icd7c7b08e317aefd91a60bfc62e=
92cd8707b6fac
Gerrit-Change-Number: 1393
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <heiko@...515...> =
div>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
=
--PrzqF1UoNFM=--