From: "MaxF (Code Review)" Date: Fri, 26 Sep 2025 17:08:44 +0000 In-Reply-To: References: Reply-To: max@...2606..., 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="gSFpJf3kiKg="; 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: plaisthos , openvpn-devel --gSFpJf3kiKg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. MaxF has posted comments on this change. ( http://gerrit.openvpn.net/c/open= vpn/+/1153?usp=3Demail ) Change subject: options: Review use of positive_atoi vs atoi_constrained ...................................................................... Patch Set 5: Code-Review+1 (1 comment) File src/openvpn/options.c: http://gerrit.openvpn.net/c/openvpn/+/1153/comment/b09f5803_fa7ecbdd : PS5, Line 7997: atoi_constrained(p[1], &options->max_routes_per_cli= ent, p[0], 1, INT_MAX, msglevel); This changes the program behavior. Before, it silently corrected max_routes= _per_client to 1, now it exits with an error. Probably a good change, but I'm not sure if you intended this commit to cha= nge behavior. -- 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 Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Id440917f433aab1a7db608ba04fa95ba47c2ddde Gerrit-Change-Number: 1153 Gerrit-PatchSet: 5 Gerrit-Owner: flichtenheld Gerrit-Reviewer: MaxF Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Fri, 26 Sep 2025 17:08:44 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --gSFpJf3kiKg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 5:Code-Review +1=

V= iew Change

1 comment:

  • File src/openvpn/options.c:

    =
    • Patch Set #5, Line 79= 97: atoi_constr= ained(p[1], &options->max_routes_per_client, p[0], 1, INT_MAX, msgle= vel);

      = This changes the program behavior. Before, it silently corrected max_routes= _per_client to 1, now it exits with an error.

      Probably a good change, but I'm not su= re if you intended this commit to change behavior.

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Id440917f433aab1a7db608ba04f= a95ba47c2ddde
Gerrit-Change-Number: 1153
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: MaxF <max@...2606...> <= /div>
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: Fri, 26 Sep 2025 17:08:44= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--gSFpJf3kiKg=--