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 2fccf8d commit 2d4aaccCopy full SHA for 2d4aacc
secp256k1-sys/depend/scratch_impl.h.patch
@@ -14,11 +14,11 @@
14
<
15
< static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) {
16
< if (scratch != NULL) {
17
-< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
18
< if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) {
19
< secp256k1_callback_call(error_callback, "invalid scratch space");
20
< return;
21
< }
+< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
22
< memset(scratch->magic, 0, sizeof(scratch->magic));
23
< free(scratch);
24
0 commit comments