From: "d12fk (Code Review)"
Date: Sun, 23 Nov 2025 06:47:30 +0000
References:
Reply-To: heiko@...515..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net
Message-ID: <7ad6e8ee9a3db7ab25d8fffd2a2e4b14a0c26e2b-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="EJUqrk61lNg="; 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: plaisthos
Cc: openvpn-devel
--EJUqrk61lNg=
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/+/1393?usp=3Demail
to review the following change.
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
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/93/1393/1
diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c
index ec80a30..006f748 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: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icd7c7b08e317aefd91a60bfc62e92cd8707b6fac
Gerrit-Change-Number: 1393
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
--EJUqrk61lNg=
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: check for NULL pointer
Che=
ck if the list argument to ListContainsDomain() is NULL. Otherwise
the c=
all to wcsstr() will bail out.
Reported-by: Marc Heuse <marc@...1665...=
953...>
Reported-by: stephan@...2953...
Change-Id: Icd7c7b08e317ae=
fd91a60bfc62e92cd8707b6fac
Signed-off-by: Heiko Hund <heiko@...2866...=
.>
---
M src/openvpnserv/interactive.c
1 file changed, 1 insert=
ion(+), 1 deletion(-)
git pull ssh://gerrit.open=
vpn.net:29418/openvpn refs/changes/93/1393/1
diff --git a/src/openv=
pnserv/interactive.c b/src/openvpnserv/interactive.c
index =
ec80a30..006f748 100644
--- a/src/openvpnserv/interactive.c=
+++ b/src/openvpnserv/interactive.c
@@ -21=
06,7 +2106,7 @@
ListContainsDomain(PCWSTR list, PCWSTR dom=
ain, size_t len)
{
PCWSTR match =3D l=
ist;
- while (TRUE)<=
/span>
+ while (match)
{
match =3D wcsstr(match, domai=
n);
if (!match)
<=
p>To view, visit change 1393. To unsubscribe, or for help writing mail filters=
, visit settings=
.
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icd7c7b08e317aefd91a60bfc62e=
92cd8707b6fac
Gerrit-Change-Number: 1393
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <heiko@...515...> =
div>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
=
--EJUqrk61lNg=--