From: "flichtenheld (Code Review)" Date: Tue, 30 Sep 2025 13:51:17 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, max@...2606... Message-ID: <587f21f48590e4199a1ef585eae17ef15f03051b-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="PP+cHJtYM3c="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: crypto: Make some casts to int explicit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: MaxF , plaisthos , openvpn-devel --PP+cHJtYM3c= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: MaxF, plaisthos. flichtenheld has posted comments on this change by flichtenheld. ( http://g= errit.openvpn.net/c/openvpn/+/1217?usp=3Demail ) Change subject: crypto: Make some casts to int explicit ...................................................................... Patch Set 2: Code-Review-1 (1 comment) File src/openvpn/crypto.c: http://gerrit.openvpn.net/c/openvpn/+/1217/comment/04d4bd3a_735a3dad?usp=3D= email : PS1, Line 1376: size =3D (int)(strlen(file) + 1); > You say that there are limits imposed so that this is safe, but I can't f= ind where that happens. [=E2=80=A6] This is actually good question. Normal parameters are limited to 256 charac= ters, but after checking it seems inline parameters have no such limit. I w= ill look further into this. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1217?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: I3b8dd8d5671e31dba2a23a0a78f36d9dda034b88 Gerrit-Change-Number: 1217 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: MaxF Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: MaxF Gerrit-Comment-Date: Tue, 30 Sep 2025 13:51:17 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: MaxF --PP+cHJtYM3c= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 2:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/crypto.c:

    <= ul style=3D"list-style: none; padding: 0;">
  • Patch Set = #1, Line 1376: = size =3D (int)(strlen(file) + 1);

    You say that there = are limits imposed so that this is safe, but I can't find where that ha= ppens. [=E2=80=A6]

    This is actually good question. Normal = parameters are limited to 256 characters, but after checking it seems inlin= e parameters have no such limit. I will look further into this.

To view, visit change 1217. To unsubscribe, or for help writing = mail filters, visit settings.

=
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3b8dd8d5671e31dba2a23a0a78f= 36d9dda034b88
Gerrit-Change-Number: 1217
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: MaxF <max@...2606...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: MaxF <max@...2606...> =
Gerrit-Comment-Date: Tue, 30 Sep 2025 13:51:17= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: MaxF <max@...2606...&g= t;
= --PP+cHJtYM3c=--