From: "cron2 (Code Review)" Date: Tue, 4 Nov 2025 09:19:24 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="0B2EjKiPDSs="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: ssl: Clean up type handling in write_string() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --0B2EjKiPDSs= 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 by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1300?usp=3Demail ) Change subject: ssl: Clean up type handling in write_string() ...................................................................... Patch Set 4: Code-Review+2 (1 comment) File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/1300/comment/00f9633e_e49112f5?usp=3D= email : PS3, Line 1788: if (len < 2 || len > real_maxlen) > Right, removed the check completely. Indeed. If `strlen(str)` is 0, `len =3D=3D 1`, so `len < 1` can just not h= appen anymore. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1300?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: I3309265edf8d6bea7bd73b21eef589a92ede6e0a Gerrit-Change-Number: 1300 Gerrit-PatchSet: 4 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 04 Nov 2025 09:19:24 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: cron2 Comment-In-Reply-To: flichtenheld --0B2EjKiPDSs= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 4:Code-Review +2=

V= iew Change

1 comment:

  • File src/openvpn/ssl.c:

    • Patch Set #3,= Line 1788: if (len= < 2 || len > real_maxlen)

      Right, removed the c= heck completely.

      Indeed. If `strlen(str)` is 0, `len =3D= =3D 1`, so `len < 1` can just not happen anymore.

  • To view, visit change 1300. To unsubscribe, or for help writing mail filter= s, visit setting= s.

    Gerrit-MessageType: comment
    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I3309265edf8d6bea7bd73b21eef= 589a92ede6e0a
    Gerrit-Change-Number: 1300
    Gerrit-PatchSet: 4
    Gerrit-Owner: flichtenheld <frank@...2723...= .>
    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: flichtenheld <frank@...2375...= 41...>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 09:19:24= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: cron2 <gert@...1296...= >
    Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
    = --0B2EjKiPDSs=--