mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
crypto: disable asan for sha256_sse4 with clang and -O0
Clang is unable to compile the Transform function for that combination of
options.
Github-Pull: #30097
Rebased-From: 141df0a288
This commit is contained in:
parent
0ba11cf908
commit
3c26058da2
1 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,13 @@
|
||||||
namespace sha256_sse4
|
namespace sha256_sse4
|
||||||
{
|
{
|
||||||
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks)
|
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks)
|
||||||
|
#if defined(__clang__) && !defined(__OPTIMIZE__)
|
||||||
|
/*
|
||||||
|
clang is unable to compile this with -O0 and -fsanitize=address.
|
||||||
|
See upstream bug: https://github.com/llvm/llvm-project/issues/92182
|
||||||
|
*/
|
||||||
|
__attribute__((no_sanitize("address")))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
static const uint32_t K256 alignas(16) [] = {
|
static const uint32_t K256 alignas(16) [] = {
|
||||||
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
|
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
|
||||||
|
|
Loading…
Add table
Reference in a new issue