Skip to content

Commit

Permalink
Fix memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatnghiho committed Dec 12, 2024
1 parent 15d890e commit 7cba6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/speed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ static bool SpeedHashChunk(const EVP_MD *md, std::string name,
return EVP_DigestInit_ex(ctx.get(), md, NULL /* ENGINE */) &&
EVP_DigestUpdate(ctx.get(), input.get(), chunk_len) &&
(EVP_MD_flags(ctx->digest) & EVP_MD_FLAG_XOF) ?
EVP_DigestFinalXOF(ctx.get(), digest, 256) : EVP_DigestFinal_ex(ctx.get(), digest, &md_len);
EVP_DigestFinalXOF(ctx.get(), digest, 32) : EVP_DigestFinal_ex(ctx.get(), digest, &md_len);
})) {
fprintf(stderr, "EVP_DigestInit_ex failed.\n");
ERR_print_errors_fp(stderr);
Expand Down

0 comments on commit 7cba6d2

Please sign in to comment.