summaryrefslogtreecommitdiff
path: root/validat9.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-08-06 15:27:12 -0400
committerJeffrey Walton <noloader@gmail.com>2022-08-06 15:27:12 -0400
commiteafd19bf7fafe06531775d9ae4298d2f9251b4ab (patch)
tree6055b85f1436953511c2b28521bf20d4d647e6cd /validat9.cpp
parentd725cccdf414ebeed512ec3bc35b1f64303d9a23 (diff)
downloadcryptopp-git-eafd19bf7fafe06531775d9ae4298d2f9251b4ab.tar.gz
Disable thorough self tests for ECGDSA with GCC 12 and above (GH #1134)
Diffstat (limited to 'validat9.cpp')
-rw-r--r--validat9.cpp12
1 files changed, 8 insertions, 4 deletions
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();