From: "ordex (Code Review)" Date: Thu, 27 Nov 2025 10:01:44 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, gert@...1296... Message-ID: <1d6c938d13d56aeac13cfcb1f87e10798998779c-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="kwlXwA8kdE8="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: extract_x509_field_ssl(): verify that X509_NAME is not NULL. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , openvpn-devel --kwlXwA8kdE8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, plaisthos. ordex has posted comments on this change by cron2. ( http://gerrit.openvpn.= net/c/openvpn/+/1388?usp=3Demail ) Change subject: extract_x509_field_ssl(): verify that X509_NAME is not NULL. ...................................................................... Patch Set 1: Code-Review-1 (1 comment) File src/openvpn/ssl_verify_openssl.c: http://gerrit.openvpn.net/c/openvpn/+/1388/comment/d4be6f27_e032b011?usp=3D= email : PS1, Line 206: if (x509 =3D=3D NULL) we normally assume parameters are valid and don't do NULL checks right at t= he beginning of the function body. therefore we should check the return value of `X509_get_subject_name()` bef= ore calling `extract_x509_field_ssl()` in `backend_x509_get_username()` -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1388?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: I1e9c7eee06bf5f2e8aed8cd2523684539294ac8b Gerrit-Change-Number: 1388 Gerrit-PatchSet: 1 Gerrit-Owner: cron2 Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Comment-Date: Thu, 27 Nov 2025 10:01:44 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --kwlXwA8kdE8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 1:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/ssl_verify_ope= nssl.c:

    • Patch Set #1, Line 206: if (x509 =3D=3D NULL)

      we normally assume parameters are v= alid and don't do NULL checks right at the beginning of the function bo= dy.

      therefore we should check the return value of `X509_get_subject_nam= e()` before calling `extract_x509_field_ssl()` in `backend_x509_get_usernam= e()`

To view, visit change 1388. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1e9c7eee06bf5f2e8aed8cd2523= 684539294ac8b
Gerrit-Change-Number: 1388
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <gert@...1296...>
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
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: cron2 <gert@...1296...>= ;
Gerrit-Comment-Date: Thu, 27 Nov 2025 10:01:44= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --kwlXwA8kdE8=--