From 61156f8a6a9959e668daf7ce5841a51b24d282d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tautvydas=20=C5=BDilys?= Date: Mon, 31 Jan 2022 13:34:01 -0800 Subject: [PATCH] =?UTF-8?q?Cap=20the=20workaround=20for=20mbedtls=5Fmpi=5F?= =?UTF-8?q?safe=5Fcond=5Fassign=20on=20MSVC/ARM64=20to=20MSVC=20versions?= =?UTF-8?q?=20prior=20to=2017.1.=20Signed-off-by:=20Tautvydas=20=C5=BDilys?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/constant_time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/constant_time.c b/library/constant_time.c index 95e4ce0b3..5f79e283a 100644 --- a/library/constant_time.c +++ b/library/constant_time.c @@ -533,9 +533,9 @@ cleanup: * about whether the assignment was made or not. * (Leaking information about the respective sizes of X and Y is ok however.) */ -#if defined(_MSC_VER) && defined(_M_ARM64) +#if defined(_MSC_VER) && defined(_M_ARM64) && (_MSC_FULL_VER < 193131103) /* - * MSVC miscompiles this function if it's inlined. See: + * MSVC miscompiles this function if it's inlined prior to Visual Studio 2022 version 17.1. See: * https://developercommunity.visualstudio.com/t/c-compiler-miscompiles-part-of-mbedtls-library-on/1646989 */ __declspec(noinline)