Attention is currently required from: flichtenheld, plaisthos, stipa.

selvanair has posted comments on this change by stipa. ( 
http://gerrit.openvpn.net/c/openvpn/+/1332?usp=email )

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_TRAILING_SLASH` in the iservice,  […]
A work around is to use PathCchAddBackslash() followed by PathCchCanonicalize() 
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=email :
PS2, Line 1607:         && (wcsnicmp(plugin_dir, plugin_path, 
wcslen(plugin_dir)) == 0))
Is the logic right here? We are canonicalizing plugin_dir, but not plugin_path. 
Are we sure plugin_path cannot not contain "../"? The latter being user 
supplied, its more important to canonicalize it than the path read from HKLM.



--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1332?usp=email
To unsubscribe, or for help writing mail filters, visit 
http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5ea90594493ab5cb858f7495f773e080b379e8e8
Gerrit-Change-Number: 1332
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]>
Gerrit-Reviewer: cron2 <[email protected]>
Gerrit-Reviewer: flichtenheld <[email protected]>
Gerrit-Reviewer: plaisthos <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-CC: selvanair <[email protected]>
Gerrit-Attention: plaisthos <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]>
Gerrit-Attention: stipa <[email protected]>
Gerrit-Comment-Date: Sat, 15 Nov 2025 17:16:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to