[openssl/openssl] 8027ba: Fix VS2013 build of QUIC radix tests

"'Mounir IDRASSI' via openssl-commits" <[email protected]> Fri, 31 Jul 2026 06:17:36 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 8027baa90ae77732942b140a0134fe60774fef13
      https://github.com/openssl/openssl/commit/8027baa90ae77732942b140a013=
4fe60774fef13
  Author: Mounir IDRASSI <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M test/radix/quic_tests.c

  Log Message:
  -----------
  Fix VS2013 build of QUIC radix tests

Visual Studio 2013 does not provide the C99 __func__ predefined identifier =
in C mode. Use OPENSSL_FUNC, which maps to the compiler-supported equivalen=
t.

This is the only source change required to compile current master with VS20=
13 Update 5 (cl 18.00.40629), on both x86 and x64.

Assisted-by: OpenCode:GLM-5.2

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Milan Broz <[email protected]>
MergeDate: Fri Jul 31 13:13:04 2026
(Merged from https://github.com/openssl/openssl/pull/31988)


  Commit: 2da90c2f053dd97821a518b62a3553888af861e2
      https://github.com/openssl/openssl/commit/2da90c2f053dd97821a518b62a3=
553888af861e2
  Author: Mounir IDRASSI <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M crypto/bio/bio_print.c
    M test/bio_core_test.c

  Log Message:
  -----------
  Fix C99 printf length modifiers with VS2013 CRT

The Visual Studio 2013 CRT does not support the C99 z, t and j length modif=
iers. Passing such formats to _vsnprintf_s invokes the invalid-parameter pa=
th and normally terminates the process.

For _MSC_VER < 1900, translate z and t to the pointer-sized I modifier and =
j to I64 before calling the CRT. Allocate a translated format only when nee=
ded, leaving newer MSVC versions and unaffected formats unchanged. Delegate=
 BIO_snprintf to BIO_vsnprintf so all BIO formatting entry points use the s=
ame compatibility path.

Add focused coverage for BIO_snprintf, BIO_vsnprintf and BIO_printf, includ=
ing the large-output allocation path and truncation behavior.

Fixes #31645

Assisted-by: OpenCode:GLM-5.2

Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Milan Broz <[email protected]>
MergeDate: Fri Jul 31 13:13:06 2026
(Merged from https://github.com/openssl/openssl/pull/31988)


Compare: https://github.com/openssl/openssl/compare/4ce7b8afc92f...2da90c2f=
053d

To unsubscribe from these emails, change your notification settings at http=
s://github.com/openssl/openssl/settings/notifications

--=20
You received this message because you are subscribed to the Google Groups "=
openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msg=
id/openssl-commits/openssl/openssl/push/refs/heads/master/4ce7b8-2da90c%40g=
ithub.com.