From: "selvanair (Code Review)" Date: Sat, 15 Nov 2025 17:16:53 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277..., gert@...1296... Message-ID: <764b247a825d682506896e376978eb6dce661cab-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="3Kv7rGCK5bM="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: win32: ensure plugin dir has the trailing slash List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stipa Cc: plaisthos , flichtenheld , openvpn-devel --3Kv7rGCK5bM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, stipa. selvanair has posted comments on this change by stipa. ( http://gerrit.open= vpn.net/c/openvpn/+/1332?usp=3Demail ) Change subject: win32: ensure plugin dir has the trailing slash ...................................................................... Patch Set 2: (2 comments) Patchset: PS2: > This is a bit annoying, with the back and forth of `PATHCCH_ENSURE_TRAILI= NG_SLASH` in the iservice, [=E2=80=A6] A work around is to use PathCchAddBackslash() followed by PathCchCanonicali= ze() avoiding the dependence on the `PATHCCH_ENSURE_TRAILING_SLASH` flag. File src/openvpn/win32.c: http://gerrit.openvpn.net/c/openvpn/+/1332/comment/3384bb13_c17698f4?usp=3D= email : PS2, Line 1607: && (wcsnicmp(plugin_dir, plugin_path, wcslen(plugin= _dir)) =3D=3D 0)) Is the logic right here? We are canonicalizing plugin_dir, but not plugin_p= ath. Are we sure plugin_path cannot not contain "../"? The latter being use= r supplied, its more important to canonicalize it than the path read from H= KLM. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1332?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I5ea90594493ab5cb858f7495f773e080b379e8e8 Gerrit-Change-Number: 1332 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: selvanair Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: stipa Gerrit-Comment-Date: Sat, 15 Nov 2025 17:16:53 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: cron2 --3Kv7rGCK5bM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos, stipa.

View = Change

2 comments:

  • Patchset:

    • Patch Set #2:

      Thi= s is a bit annoying, with the back and forth of `PATHCCH_ENSURE_TRAILING_SL= ASH` in the iservice, [=E2=80=A6]

      A work around is to use= PathCchAddBackslash() followed by PathCchCanonicalize() avoiding the depen= dence on the `PATHCCH_ENSURE_TRAILING_SLASH` flag.

  • File src/openvpn/win32.c:

    • Patch Set #2, Line 16= 07: && = (wcsnicmp(plugin_dir, plugin_path, wcslen(plugin_dir)) =3D=3D 0))

      change 1332. To unsub= scribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: openvpn
      Gerrit-Branch: master
      Gerrit-Change-Id: I5ea90594493ab5cb858f7495f77= 3e080b379e8e8
      Gerrit-Change-Number: 1332
      Gerrit-PatchSet: 2
      Gerrit-Owner: stipa <lstipakov@...277...>= ;
      Gerrit-Reviewer: cron2 <gert@...1296...>=
      Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
      Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
      Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
      Gerrit-CC: selvanair <selva.nair@...277...&= gt;
      Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
      Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
      Gerrit-Attention: stipa <lstipakov@...1663...= .>
      Gerrit-Comment-Date: Sat, 15 Nov 2025 17:16:53= +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: cron2 <gert@...1296...= >
      = --3Kv7rGCK5bM=--