From 95d367df907595ba978b9baee3c41b4b00798baa Mon Sep 17 00:00:00 2001 From: Loshan T Date: Wed, 28 Feb 2024 22:40:28 +0000 Subject: [PATCH] use thread_local scrypt scratchpad --- 0.21/alpine/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0.21/alpine/Dockerfile b/0.21/alpine/Dockerfile index cdb5041..bd08c23 100644 --- a/0.21/alpine/Dockerfile +++ b/0.21/alpine/Dockerfile @@ -74,7 +74,7 @@ RUN sed -i '/#include /a #include ' src/util/bip32.h RUN sed -i '/#include /a #include ' src/util/string.h # fixes overflow causing segfault RUN sed -i '/char\ scratchpad\[SCRYPT_SCRATCHPAD_SIZE\];/a\memset(scratchpad, 0, sizeof(scratchpad));' src/crypto/scrypt.cpp -RUN sed -i 's/char\ scratchpad\[SCRYPT_SCRATCHPAD_SIZE\];/static &/g' src/crypto/scrypt.cpp +RUN sed -i 's/char\ scratchpad\[SCRYPT_SCRATCHPAD_SIZE\];/thread_local &/g' src/crypto/scrypt.cpp # update filesystem to v1.2.2: fixes alpine build error RUN wget -O src/libmw/deps/ghc/include/ghc/filesystem.hpp https://github.com/gulrak/filesystem/releases/download/v1.2.2/filesystem.hpp