From: "plaisthos (Code Review)" Date: Tue, 14 Oct 2025 09:47:00 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <18b65f4929b2d6487b376d3aef89f41b34b25ee2-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="906TCl2dW5c="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Enable -Wtype-limits by default (via -Wextra) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --906TCl2dW5c= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. plaisthos has posted comments on this change by flichtenheld. ( http://gerr= it.openvpn.net/c/openvpn/+/1207?usp=3Demail ) Change subject: Enable -Wtype-limits by default (via -Wextra) ...................................................................... Patch Set 3: Code-Review-1 (1 comment) File src/openvpn/init.c: http://gerrit.openvpn.net/c/openvpn/+/1207/comment/c01e41e9_729132bc?usp=3D= email : PS3, Line 2732: bool datav2_enabled =3D c->options.peer_id < MAX_PEER_I= D; Yes that is correct from the standpoint of no sign compare but the check sh= ould be fixed to actually do what it says. Replace the first part with c->o= ptions.use_peer_id -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1207?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: Iaabddb6f81cd94863291b193aae9d384a8f9d871 Gerrit-Change-Number: 1207 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 14 Oct 2025 09:47:00 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --906TCl2dW5c= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld.

Patch set 3:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/init.c:

  • Patch Set #3= , Line 2732: bool d= atav2_enabled =3D c->options.peer_id < MAX_PEER_ID;

    Yes th= at is correct from the standpoint of no sign compare but the check should b= e fixed to actually do what it says. Replace the first part with c->opti= ons.use_peer_id

To view, visit change 1207. To unsubs= cribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iaabddb6f81cd94863291b193aae= 9d384a8f9d871
Gerrit-Change-Number: 1207
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 14 Oct 2025 09:47:00= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --906TCl2dW5c=--