From: "cron2 (Code Review)" Date: Sat, 6 Dec 2025 20:57:16 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, kn@...2273... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="21dFIEaFEj4="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Prevent crash on invalid server-ipv6 argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , openvpn-devel --21dFIEaFEj4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: klemens, plaisthos. cron2 has posted comments on this change by klemens. ( http://gerrit.openvp= n.net/c/openvpn/+/1418?usp=3Demail ) Change subject: Prevent crash on invalid server-ipv6 argument ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: On FreeBSD and Linux, freeaddrinfo(NULL) seems to be safe, but the comment = inside FreeBSD's lib sources hint at "this is not clearly defined in the st= andard" and it seems OpenBSD prefes to make that point very clear. We do actually check getaddrinfo() return everywhere else and only do `free= addrinfo(ai)` in the success branch, or after testing for `not NULL`, so th= is is a very reasonable change. (I might add some wording about this to the commit message) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1418?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: I99a6604fdfc682f9609bfe7672aa78285084dcb9 Gerrit-Change-Number: 1418 Gerrit-PatchSet: 1 Gerrit-Owner: klemens Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: klemens Gerrit-Comment-Date: Sat, 06 Dec 2025 20:57:16 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --21dFIEaFEj4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

1 comment:

    =
  • Patchset:

    • Patch Set #1:

      On FreeBSD and = Linux, freeaddrinfo(NULL) seems to be safe, but the comment inside FreeBSD&= #39;s lib sources hint at "this is not clearly defined in the standard= " and it seems OpenBSD prefes to make that point very clear.

      We do= actually check getaddrinfo() return everywhere else and only do `freeaddri= nfo(ai)` in the success branch, or after testing for `not NULL`, so this is= a very reasonable change.

      (I might add some wording about this to the = commit message)

To view, visit change 1418. To unsubs= cribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I99a6604fdfc682f9609bfe7672a= a78285084dcb9
Gerrit-Change-Number: 1418
Gerrit-PatchSet: 1
Gerrit-Owner: klemens <kn@...2273...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: klemens <kn@...2273...>= ;
Gerrit-Comment-Date: Sat, 06 Dec 2025 20:57:16= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --21dFIEaFEj4=--