File 0607-crypto-Investigate-ASAN-problem.patch of Package erlang

From ec1c58aa1d8c39e794d616fb31d62b6154878ff9 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Thu, 10 Jun 2021 17:17:46 +0200
Subject: [PATCH 4/4] crypto: Investigate ASAN problem

---
 erts/emulator/asan/suppress      | 5 ++++-
 lib/crypto/test/crypto_SUITE.erl | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/erts/emulator/asan/suppress b/erts/emulator/asan/suppress
index f4320a9a74..26ba649522 100644
--- a/erts/emulator/asan/suppress
+++ b/erts/emulator/asan/suppress
@@ -9,9 +9,12 @@ leak:sys_thread_init_signal_stack
 # Crypto: loading gives expected errors when curves are tried. But including
 # <openssl/err.h> and removing them triggers compiler errors on Windows
 leak:init_curve_types
+#
+leak:valid_curve
+
 
 # Crypto: OpensSSL error handling (see about err.h above)
-#leak:ERR_put_error
+leak:ERR_put_error
 
 # Crypto: Our test engine leaks. That is actually a design decision since it is only a test tool
 # This disables errors in that:
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index dcc43fa01e..cbb8fcd63f 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -217,11 +217,11 @@
 suite() -> [{ct_hooks,[ts_install_cth]}].
 
 all() ->
-    [app,
+    [%%crypto_load,
+     %%crypto_load_and_call,
+     app,
      {group, api_errors},
      appup,
-     crypto_load,
-     crypto_load_and_call,
      {group, fips},
      {group, non_fips},
      cipher_padding,
-- 
2.31.1

openSUSE Build Service is sponsored by