nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 1.2 kB view raw
1From af3a3f8205968f9e652efa7adf2a359f4eb9d9cc Mon Sep 17 00:00:00 2001 2From: Alexandr Nedvedicky <sashan@openssl.org> 3Date: Mon, 6 Oct 2025 09:33:09 +0200 4Subject: [PATCH] OPENSSL_SYS_WINDOWS is also enabled for mingw build 5 6the test_n() in bioprinttest.c must differentiate between 7MSVC runtime libc and ming runtime libc. The function 8_set_printf_count_output() must be called when openssl 9is linked with MSVC libc only. 10 11Fixes #28679 12 13Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> 14Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> 15Reviewed-by: Neil Horman <nhorman@openssl.org> 16(Merged from https://github.com/openssl/openssl/pull/28759) 17--- 18 test/bioprinttest.c | 2 +- 19 1 file changed, 1 insertion(+), 1 deletion(-) 20 21diff --git a/test/bioprinttest.c b/test/bioprinttest.c 22index bd99b9820ecc0..28730631bc201 100644 23--- a/test/bioprinttest.c 24+++ b/test/bioprinttest.c 25@@ -541,7 +541,7 @@ static int test_n(int i) 26 ptrdiff_t t; 27 } n = { 0 }; 28 29-#if defined(OPENSSL_SYS_WINDOWS) 30+#if defined(_set_printf_count_output) 31 /* 32 * MS CRT is special and throws an exception when %n is used even 33 * in non-*_s versions of printf routines, and there is a special function