We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e63b068 commit 336f097Copy full SHA for 336f097
src/secp256k1.c
@@ -89,6 +89,12 @@ size_t secp256k1_context_preallocated_size(unsigned int flags) {
89
return 0;
90
}
91
92
+ if (EXPECT(!SECP256K1_CHECKMEM_RUNNING() && (flags & SECP256K1_FLAGS_BIT_CONTEXT_DECLASSIFY), 0)) {
93
+ secp256k1_callback_call(&default_illegal_callback,
94
+ "Declassify flag requires running with memory checking");
95
+ return 0;
96
+ }
97
+
98
return ret;
99
100
0 commit comments