From: "plaisthos (Code Review)"
Date: Fri, 22 Mar 2024 18:39:44 +0000
In-Reply-To:
References:
Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net,
frank@...2641...
Message-ID: <6fe4585d3fcaa3541f8c88e4d7c8b3fe41760bc3-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="bLKMaAufqHA="; charset=UTF-8
Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Use snprintf
instead of sprintf for get_ssl_library_version
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: flichtenheld , openvpn-devel
--bLKMaAufqHA=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c=
/openvpn/+/545?usp=3Demail )
Change subject: Use snprintf instead of sprintf for get_ssl_library_version
......................................................................
Patch Set 1:
(1 comment)
File src/openvpn/ssl_mbedtls.c:
http://gerrit.openvpn.net/c/openvpn/+/545/comment/7c92da42_95f3de4f :
PS1, Line 1617: snprintf(mbedtls_version, sizeof(mbedtls_version), "mbe=
d TLS %d.%d.%d",
> Do we want to use openvpn_snprintf here?
I think we probably want to get rid of openvpn_snprintf instead. I will pre=
pare a patch to remove it and add unit tests to check if it behaves correct=
ly according to https://en.cppreference.com/w/c/io/snprintf it actually gua=
rantees the behaviour that we expect.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/545?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: I3c6fd36eb9daee9244d6dc6d9f22de1c5cf9d039
Gerrit-Change-Number: 545
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos
Gerrit-Reviewer: flichtenheld
Gerrit-CC: openvpn-devel
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Fri, 22 Mar 2024 18:39:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld
Gerrit-MessageType: comment
--bLKMaAufqHA=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld.
View C=
hange
1 comment:
<=
li style=3D"margin: 0; padding: 0;">File src/openvpn/ssl_mbedtls.c:
<=
ul style=3D"list-style: none; padding: 0;">Patch Set #1, Line 1617=
: snprintf(mbedtls_=
version, sizeof(mbedtls_version), "mbed TLS %d.%d.%d",
=
Do we want to use openvpn_snprintf here?
I think we probably wa=
nt to get rid of openvpn_snprintf instead. I will prepare a patch to remove=
it and add unit tests to check if it behaves correctly according to https:=
//en.cppreference.com/w/c/io/snprintf it actually guarantees the behaviour =
that we expect.
To view, visit change 545. To unsubscr=
ibe, or for help writing mail filters, visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3c6fd36eb9daee9244d6dc6d9f2=
2de1c5cf9d039
Gerrit-Change-Number: 545
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...=
27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Comment-Date: Fri, 22 Mar 2024 18:39:44=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...=
.2641...>
Gerrit-MessageType: comment
--bLKMaAufqHA=--