Attention is currently required from: Arne Schwabe, Heiko Hund, Răzvan Cojocaru.

Hello Arne Schwabe, Răzvan Cojocaru,

I'd like you to reexamine a change. Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2234?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review-1 by Răzvan Cojocaru


Change subject: openvpnserv: check room for the DHCPv6 name server separator
......................................................................

openvpnserv: check room for the DHCPv6 name server separator

GetItfDnsServersV6() added a separator between addresses even if only
the terminating zero still fit into the buffer, overwriting it, and
relied on inet_ntop() failing with a zero size buffer afterwards.

Return ERROR_MORE_DATA before adding the separator instead.

Change-Id: I1d36996218c3c61f1f16e2c97f922afa66df6b66
Signed-off-by: Heiko Hund <[email protected]>
---
M src/openvpnserv/interactive.c
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/34/2234/2

diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c
index 24705a9..32b1688 100644
--- a/src/openvpnserv/interactive.c
+++ b/src/openvpnserv/interactive.c
@@ -2256,7 +2256,12 @@
         {
             if (i != 0)
             {
-                /* Add separator */
+                /* Add separator, if there is room for more than the 
terminator */
+                if (s < 2)
+                {
+                    *size = 0;
+                    return ERROR_MORE_DATA;
+                }
                 *pos++ = ',';
                 s--;
             }

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2234?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: I1d36996218c3c61f1f16e2c97f922afa66df6b66
Gerrit-Change-Number: 2234
Gerrit-PatchSet: 2
Gerrit-Owner: Heiko Hund <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Heiko Hund <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to