From: "cron2 (Code Review)" Date: Thu, 9 Oct 2025 20:59:38 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., max@...2606... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="+gWfhYzSODY="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: options: Review use of positive_atoi vs atoi_constrained List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: MaxF , plaisthos , openvpn-devel --+gWfhYzSODY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: MaxF, flichtenheld, plaisthos. cron2 has posted comments on this change by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1153?usp=3Demail ) Change subject: options: Review use of positive_atoi vs atoi_constrained ...................................................................... Patch Set 6: Code-Review+2 (1 comment) File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/1153/comment/18e489ea_91e53016?usp=3D= email : PS5, Line 7997: atoi_constrained(p[1], &options->max_routes_per_cli= ent, p[0], 1, INT_MAX, msglevel); > This changes the program behavior. [=E2=80=A6] I think this is acceptable. There might be a config somewhere that has `ma= x-routes-per-client 0` in it, auto-upgraded to `1`, but it does not make an= y sense whatsoever... "do not use options you do not understand". -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1153?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: Id440917f433aab1a7db608ba04fa95ba47c2ddde Gerrit-Change-Number: 1153 Gerrit-PatchSet: 6 Gerrit-Owner: flichtenheld Gerrit-Reviewer: MaxF Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: MaxF Gerrit-Comment-Date: Thu, 09 Oct 2025 20:59:38 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: MaxF --+gWfhYzSODY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 6:Code-Review +2=

V= iew Change

1 comment:

  • File src/openvpn/options.c:

    =
    • Patch Set= #5, Line 7997: = atoi_constrained(p[1], &options->max_routes_per_client, p[0], 1, IN= T_MAX, msglevel);

      This changes the program behavior. = [=E2=80=A6]

      I think this is acceptable. There might be a = config somewhere that has `max-routes-per-client 0` in it, auto-upgraded to= `1`, but it does not make any sense whatsoever... "do not use options= you do not understand".

To view, visit change 1153<= /a>. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id440917f433aab1a7db608ba04f= a95ba47c2ddde
Gerrit-Change-Number: 1153
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: MaxF <max@...2606...> <= /div>
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-Attention: MaxF <max@...2606...> =
Gerrit-Comment-Date: Thu, 09 Oct 2025 20:59:38= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: MaxF <max@...2606...&g= t;
= --+gWfhYzSODY=--