From: "cron2 (Code Review)" Date: Sun, 23 Nov 2025 11:48:28 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net Message-ID: <6680cebe6966aff997d3f87e92a27d533b17966e-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="SRi5ptSqZYM="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: iservice: fix calculation of converted domains size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: plaisthos , openvpn-devel --SRi5ptSqZYM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, plaisthos. cron2 has posted comments on this change by d12fk. ( http://gerrit.openvpn.= net/c/openvpn/+/1390?usp=3Demail ) Change subject: iservice: fix calculation of converted domains size ...................................................................... Patch Set 1: Code-Review-1 (2 comments) Patchset: PS1: I might be misreading this, but I think there is still an char/wchar mixup = here File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/1390/comment/d13a1328_0f71fd2d?usp=3D= email : PS1, Line 2207: domain_size +=3D 1; shouldn't that be `+=3D one_glyph` here? A wide-character dot will still t= ake 2 bytes? Maybe just move the `size_t domain_size =3D domain_len * one_glyph` down he= re so it will get the +1 right away? (Also it feels a bit more logical to = do this after the ListContainsDomain() block, where it is used) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1390?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I16f9426e57f4802ba038ab51f5b70161464b9428 Gerrit-Change-Number: 1390 Gerrit-PatchSet: 1 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: d12fk Gerrit-Comment-Date: Sun, 23 Nov 2025 11:48:28 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --SRi5ptSqZYM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: d12fk, plaisthos.

Patch set 1:Code-Review -1=

V= iew Change

2 comments:

  • Patchset:

    • Patch Set #1:

      I might be= misreading this, but I think there is still an char/wchar mixup here

  • File src/openvpnserv/i= nteractive.c:

    • Patch Set #1, Line 2207: domain_size +=3D 1;

      shouldn't th= at be `+=3D one_glyph` here? A wide-character dot will still take 2 bytes?=

      Maybe just move the `size_t domain_size =3D domain_len * one_glyph` do= wn here so it will get the +1 right away? (Also it feels a bit more logica= l to do this after the ListContainsDomain() block, where it is used)

To view, visit change 1390. To unsubscribe, or for help wri= ting mail filters, visit settings.

=
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I16f9426e57f4802ba038ab51f5b= 70161464b9428
Gerrit-Change-Number: 1390
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Sun, 23 Nov 2025 11:48:28= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --SRi5ptSqZYM=--