Gert Doering has uploaded a new patch set (#2) to the change originally created
by Răzvan Cojocaru. ( https://gerrit.openvpn.net/c/openvpn/+/2110?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by Heiko Hund
Change subject: openvpnserv: don't use registry default as format string
......................................................................
openvpnserv: don't use registry default as format string
GetRegString() passed default_value, which is built from the install
path, as the swprintf() format, so a '%' in the path was interpreted
as a conversion. Print it with "%ls" and treat only a negative
return as failure.
Format string use introduced in b1263b06 ("Ensure strings read from
registry are null-terminated").
Change-Id: Ib53e82554712d881b1e24f6f3a2f8fbb702951bd
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Heiko Hund <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2110
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg40655.html
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpnserv/common.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/10/2110/2
diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c
index 7a23d41..671ddde 100644
--- a/src/openvpnserv/common.c
+++ b/src/openvpnserv/common.c
@@ -38,7 +38,7 @@
if (status == ERROR_FILE_NOT_FOUND && default_value)
{
size_t len = size / sizeof(data[0]);
- if (swprintf(data, len, default_value))
+ if (swprintf(data, len, L"%ls", default_value) >= 0)
{
status = ERROR_SUCCESS;
}
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2110?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib53e82554712d881b1e24f6f3a2f8fbb702951bd
Gerrit-Change-Number: 2110
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Heiko Hund <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel