From: "plaisthos (Code Review)" Date: Sun, 27 Oct 2024 15:17:44 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="NH+jpMVh3XA="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Refuse clients if username or password is > USER_PASS_LEN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cron2 , flichtenheld , openvpn-devel --NH+jpMVh3XA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld. plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c= /openvpn/+/787?usp=3Demail ) Change subject: Refuse clients if username or password is > USER_PASS_LEN ...................................................................... Patch Set 1: (1 comment) File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/787/comment/801fc40c_ea3a9703 : PS1, Line 2284: abs(username_len), abs(password_len)); > I suggest printing the variables without `abs()` so the log is clear *if*= there is an overrun - in m [=E2=80=A6] I think a negative length is more alarming and confusing that a positive on= e. If you remove the abs() one of the number will be always negative. Since= it errors out now anyway and of them is too long anyway, it is a larger on= e. I just didn't want to do all the if/else cases and different message for= password too long and username too long. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/787?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: I60f02c919767eb8f1b95253689a8233f5f68621d Gerrit-Change-Number: 787 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Sun, 27 Oct 2024 15:17:44 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: cron2 Gerrit-MessageType: comment --NH+jpMVh3XA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld.

View C= hange

1 comment:

    <= li style=3D"margin: 0; padding: 0;">

    File src/openvpn/ssl.c:

    • Patch Set #1, Line 2284: abs(username_len), ab= s(password_len));

      I suggest printing the variables wi= thout `abs()` so the log is clear *if* there is an overrun - in m [=E2=80= =A6]

      I think a negative length is more alarming and confusing that a positi= ve one. If you remove the abs() one of the number will be always negative. = Since it errors out now anyway and of them is too long anyway, it is a larg= er one. I just didn't want to do all the if/else cases and different me= ssage for password too long and username too long.

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I60f02c919767eb8f1b95253689a= 8233f5f68621d
Gerrit-Change-Number: 787
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Sun, 27 Oct 2024 15:17:44= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...= >
Gerrit-MessageType: comment
--NH+jpMVh3XA=--