This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 479c40f595da3e2b89fbcd526747e11f994670c7 Author: Jack Lau <[email protected]> AuthorDate: Mon Feb 9 15:12:23 2026 +0800 Commit: Jack Lau <[email protected]> CommitDate: Tue Feb 17 13:58:14 2026 +0000 avformat/tls_openssl: use EINVAL when X509_digest failed This function just calculate and copy the fingerprint to the provided buf, will not allocate memory. It fails when the input (such as cert) is invalid. Signed-off-by: Jack Lau <[email protected]> --- libavformat/tls_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index c7d6ff6cf4..821f9ffd04 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -100,7 +100,7 @@ static int x509_fingerprint(X509 *cert, char **fingerprint) if (X509_digest(cert, EVP_sha256(), md, &n) != 1) { av_log(NULL, AV_LOG_ERROR, "TLS: Failed to generate fingerprint, %s\n", ERR_error_string(ERR_get_error(), NULL)); - return AVERROR(ENOMEM); + return AVERROR(EINVAL); } av_bprint_init(&buf, n*3, n*3); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
