From: "cron2 (Code Review)" Date: Sun, 23 Nov 2025 11:57:07 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net Message-ID: <84b0ef0c42fce1336341d8f297c66caeee48bc5b-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="p/MJp/PFsmo="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: iservice: return correct size when domains are truncated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: plaisthos , openvpn-devel --p/MJp/PFsmo= 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/+/1391?usp=3Demail ) Change subject: iservice: return correct size when domains are truncated ...................................................................... Patch Set 1: Code-Review-1 (2 comments) Patchset: PS1: I might not understand this, but we have `+ one_glyph` in one return branch= , and `+ 1` in the other. This can't be both correct. File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/1391/comment/028ab026_9b0f67b5?usp=3D= email : PS1, Line 2217: *size =3D converted_size =3D=3D 0 ? 0 := converted_size + 1; `+1` or `+ one_glyph`? The code 10 lines up does ``` /* This was the last domain */ *pos =3D '\0'; *size +=3D one_glyph; return wcslen(domains) ? NO_ERROR : ERROR_FILE_NOT_= FOUND; ``` both can not be correct at the same time. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1391?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: Iabad046c930dd0f38ec50d1c43d8b3288816df7d Gerrit-Change-Number: 1391 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:57:07 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --p/MJp/PFsmo= 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 no= t understand this, but we have `+ one_glyph` in one return branch, and `+ 1= ` in the other. This can't be both correct.

  • File src/openvpnserv/interactive.c:

    • Patch Set #1,= Line 2217: = *size =3D converted_size =3D=3D 0 ? 0 : converted_size + 1;=

      `+1` or `+ one_glyph`?

      The code 10 lines up does

      =
      ```
      /* This was the last domain */
      = *pos =3D '\0';
      *size +=3D = one_glyph;
      return wcslen(domains) ? NO_ERROR : E= RROR_FILE_NOT_FOUND;
      ```

      both can not be correct at the same time.=

To view, visit change 1391. To unsubscribe, or for h= elp writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iabad046c930dd0f38ec50d1c43d= 8b3288816df7d
Gerrit-Change-Number: 1391
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:57:07= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --p/MJp/PFsmo=--