From: "cron2 (Code Review)" Date: Mon, 8 Apr 2024 08:22:27 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., a@...2181... Message-ID: <030e46e8d57edd744de5187cf6b22e6e636b0e96-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Q+zpxFVjUhM="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Remove openvpn_snprintf and similar functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --Q+zpxFVjUhM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/547?usp=3Demail ) Change subject: Remove openvpn_snprintf and similar functions ...................................................................... Patch Set 2: Code-Review-1 (3 comments) Patchset: PS2: Unfortunately, this fails -Werror msbuild builds now, see comment in intera= ctive.c File src/openvpn/proxy.c: http://gerrit.openvpn.net/c/openvpn/+/547/comment/b37effa6_d450b13a : PS2, Line 962: if (sret >=3D sizeof(buf)) > if this can truly happen, does it mean that the buffer is undersized comp= ared to the size of all var [=E2=80=A6] this code is not part of the actual patchset, but a gerrit artefact due to = rebasing. *This* patchset only replaces openvpn_snprintf() with snprintf(). File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/547/comment/918c9772_0150ba41 : PS2, Line 2007: sud.options, svc_pipe); This makes GHA msbuild build fails now, with ``` D:\a\openvpn\openvpn\src\openvpnserv\interactive.c(2006,37): warning C4477= : 'swprintf' : format string '%llu' requires an argument of type 'unsigned = __int64', but variadic argument 2 has type 'HANDLE' [D:\a\openvpn\openvpn\o= ut\build\win-amd64-release\src\openvpnserv\openvpnserv.vcxproj] ``` so it seems the cast to something-int (`DWORD`?) is needed. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/547?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: I07096977e3b562bcb5d2c6f11673a4175b8e12ac Gerrit-Change-Number: 547 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Mon, 08 Apr 2024 08:22:27 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: ordex Gerrit-MessageType: comment --Q+zpxFVjUhM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 2:Code-Review -1=

Vi= ew Change

3 comments:

  • Patchset:

    • Patch Set #2:

      Unfortunately, this fails -Werror msbuild bui= lds now, see comment in interactive.c

  • File src/openvpn/proxy.c:

    • Patch Set #2, Line 962: if (sret >=3D sizeof(buf)= )

      if this can truly happen, does it mean that the buf= fer is undersized compared to the size of all var [=E2=80=A6]
      <= /p>

      this code is = not part of the actual patchset, but a gerrit artefact due to rebasing. *T= his* patchset only replaces openvpn_snprintf() with snprintf().

    • File src/openvpnserv/interac= tive.c:

      • Patch Set #= 2, Line 2007: = sud.options, svc_pipe);

        This makes GHA msbuild build fails now, with

        ```
        = D:\a\openvpn\openvpn\src\openvpnserv\interactive.c(2006,37): warning C4477:= 'swprintf' : format string '%llu' requires an argument of = type 'unsigned __int64', but variadic argument 2 has type 'HAND= LE' [D:\a\openvpn\openvpn\out\build\win-amd64-release\src\openvpnserv\o= penvpnserv.vcxproj]
        ```

        so it seems the cast to something-int = (`DWORD`?) is needed.

    To view, visit change 547. To = unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I07096977e3b562bcb5d2c6f1167= 3a4175b8e12ac
    Gerrit-Change-Number: 547
    Gerrit-PatchSet: 2
    Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
    Gerrit-Reviewer: cron2 <gert@...1296...>=
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    Gerrit-Reviewer: ordex <a@...2181...>
    Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
    Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
    Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
    Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
    Gerrit-Comment-Date: Mon, 08 Apr 2024 08:22:27= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: ordex <a@...2181...>= ;
    Gerrit-MessageType: comment
    --Q+zpxFVjUhM=--