From: "stipa (Code Review)" Date: Mon, 9 Dec 2024 12:28:28 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <84adf82e3b89f867d24ca1a6e1a47520cebbfd01-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="bNgdrcpxl5s="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: support multiple domains without DHCP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: plaisthos , flichtenheld , openvpn-devel --bNgdrcpxl5s= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, flichtenheld, plaisthos. stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/824?usp=3Demail ) Change subject: dns: support multiple domains without DHCP ...................................................................... Patch Set 2: (3 comments) File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/824/comment/21f75f54_201cbbb0 : PS2, Line 1302: CloseServiceHandle(dnssvc); SAL: Warning C6387 'dnssvc' could be '0'. openvpn C:\Users\lev\Projects\openvpn-= build\src\openvpn\src\openvpnserv\interactive.c 1302 same on the following line. Add a NULL check? http://gerrit.openvpn.net/c/openvpn/+/824/comment/d64294ff_24966968 : PS2, Line 1584: size =3D (wcslen(list) + 1) * sizeof(list[0]); I got a SAL warning: Warning C6053 The prior call to 'wcsncpy' might not zero-terminate string '= list'. openvpn C:\Users\lev\Projects\openvpn-build\src\openvpn\src\openvpns= erv\interactive.c 1584 I think on line 1581 we have +1 to copy NULL terminator from domains, so th= is is not an issue? Should we also initialize list with {0} to make SAL hap= py? http://gerrit.openvpn.net/c/openvpn/+/824/comment/e58e3f80_84b5ad3c : PS2, Line 1648: RemoveDnsSearchDomains(HKEY key, PCWSTR domains) SAL warning: Warning C6262 Function uses '16432' bytes of stack. Consider moving some d= ata to heap. openvpn C:\Users\lev\Projects\openvpn-build\src\openvpn\src\op= envpnserv\interactive.c 1648 Is 4096 a random "large enough" value? Can we make it, say, 2048 to make SA= L happy? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/824?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Icaffbfa6b2e8efa2bd24a05537cb74b15f4fed96 Gerrit-Change-Number: 824 Gerrit-PatchSet: 2 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: stipa Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: d12fk Gerrit-Comment-Date: Mon, 09 Dec 2024 12:28:28 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --bNgdrcpxl5s= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, flichtenheld, plaisthos. <= /p>

View C= hange

3 comments:

To view, visit change 824. To unsubscri= be, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icaffbfa6b2e8efa2bd24a05537c= b74b15f4fed96
Gerrit-Change-Number: 824
Gerrit-PatchSet: 2
Gerrit-Owner: d12fk <heiko@...515...>
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: stipa <lstipakov@...277...> <= /div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Mon, 09 Dec 2024 12:28:28= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--bNgdrcpxl5s=--