Projects
Eulaceura:Factory
uadk_engine
_service:obs_scm:0006-digest-add-ctx-allocation...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0006-digest-add-ctx-allocation-check.patch of Package uadk_engine
From 07324a0cdcad935e7d3449b8ff8907ca1c2a6b58 Mon Sep 17 00:00:00 2001 From: Zhiqi Song <songzhiqi1@huawei.com> Date: Fri, 29 Mar 2024 10:13:24 +0800 Subject: [PATCH 6/7] digest: add ctx allocation check Add result check of EVP_MD_CTX_new(). Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com> Signed-off-by: JiangShui Yang <yangjiangshui@h-partners.com> --- src/uadk_digest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uadk_digest.c b/src/uadk_digest.c index 8ab1b83..43bbf60 100644 --- a/src/uadk_digest.c +++ b/src/uadk_digest.c @@ -204,6 +204,8 @@ static int digest_soft_init(struct digest_priv_ctx *md_ctx) /* Allocate a soft ctx for hardware engine */ if (md_ctx->soft_ctx == NULL) md_ctx->soft_ctx = EVP_MD_CTX_new(); + if (md_ctx->soft_ctx == NULL) + return 0; ctx = md_ctx->soft_ctx; -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2