From eafd19bf7fafe06531775d9ae4298d2f9251b4ab Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 6 Aug 2022 15:27:12 -0400 Subject: Disable thorough self tests for ECGDSA with GCC 12 and above (GH #1134) --- validat9.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'validat9.cpp') diff --git a/validat9.cpp b/validat9.cpp index cd9e7246..6f11c6bd 100644 --- a/validat9.cpp +++ b/validat9.cpp @@ -652,11 +652,15 @@ bool ValidateECGDSA(bool thorough) { std::cout << "\nECGDSA validation suite running...\n\n"; - // thorough forced to false due to GH #1134. There is something sideways - // with ECGDSA with RIPEMD message digests. The problem is present with - // CRYPTOPP_DISABLE_ASM present. However, Asan, UBsan and Valgrind fail - // to produce a finding. The program crashes with a junk backtrace. + // thorough forced to false due to GH #1134. There is something + // sideways with GCC 12, ECGDSA with RIPEMD message digests. The + // problem is present with CRYPTOPP_DISABLE_ASM present. However, + // Asan, UBsan and Valgrind fail to produce a finding. The program + // simply crashes with a junk backtrace. And GCC 11 (and earlier), + // Clang, MSVC are Ok. This is likely a compiler bug. +#if CRYPTOPP_GCC_VERSION >= 120000 thorough = false; +#endif if (thorough) return ValidateECGDSAStandard() && ValidateECGDSAThorough(); -- cgit v1.2.1