aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@runxiyu.org>2025-03-23 17:45:12 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-23 17:45:12 +0800
commit85f1d43156f2ea68b42698ab55bbe16c09c156f2 (patch)
tree97b25b83b373aa5d592e3ac9fca86b122dc4aa54
parentMake it (hopefully) work on non-8-bit systems (diff)
downloadpowxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.tar.gz
powxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.tar.zst
powxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.zip
Fix digest size
-rw-r--r--csolver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/csolver.go b/csolver.go
index 38eeb3f..11999b2 100644
--- a/csolver.go
+++ b/csolver.go
@@ -101,7 +101,7 @@ int main(int argc, char **argv)
}
size_t len = EVP_MD_size(EVP_sha256());
- unsigned char digest[EVP_MAX_MD_SIZE];
+ unsigned char digest[len];
size_t next = 0;
while (1) {