From: "ordex (Code Review)" Date: Mon, 6 Oct 2025 19:51:46 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <876b2cf52cc171d86a681b1d9f76d7e973c539e2-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="x0qOe/5qvdM="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: sitnl: Clean up type handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --x0qOe/5qvdM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. ordex has posted comments on this change by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1251?usp=3Demail ) Change subject: sitnl: Clean up type handling ...................................................................... Patch Set 3: (1 comment) File src/openvpn/networking_sitnl.c: http://gerrit.openvpn.net/c/openvpn/+/1251/comment/586c07ec_1e0e87a3?usp=3D= email : PS3, Line 150: rta->rta_len =3D (unsigned short)len; what happens if we rather make everything unsigned short instead of passing= through size_t? (technically speaking here we could have a value that is larger than USHRT_= MAX, because len and maxlen are size_t) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1251?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: I20205ebd06bbf7cbee8c9be93f399961f5b74fcc Gerrit-Change-Number: 1251 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: ordex Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Mon, 06 Oct 2025 19:51:46 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --x0qOe/5qvdM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

1 comment:

    =
  • File src/openvpn/networking_sitnl.c= :

    • Patc= h Set #3, Line 150: = rta->rta_len =3D (unsigned short)len;

      what happens if we rat= her make everything unsigned short instead of passing through size_t?
      (t= echnically speaking here we could have a value that is larger than USHRT_MA= X, because len and maxlen are size_t)

To view, vi= sit chan= ge 1251. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I20205ebd06bbf7cbee8c9be93f3= 99961f5b74fcc
Gerrit-Change-Number: 1251
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-CC: ordex <antonio@...2726...>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Mon, 06 Oct 2025 19:51:46= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --x0qOe/5qvdM=--