mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
CryptoPkg/BaseCryptLib: Fix possible uninitialized use
`Result` can be used uninitialized in both functions after following either first or second `goto` statement. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Sergei Dmitrouk <sergei@posteo.net> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
This commit is contained in:
parent
4c79f9bc20
commit
15ee7b7689
@ -82,6 +82,7 @@ RsaPssVerify (
|
|||||||
EVP_PKEY_CTX *KeyCtx;
|
EVP_PKEY_CTX *KeyCtx;
|
||||||
CONST EVP_MD *HashAlg;
|
CONST EVP_MD *HashAlg;
|
||||||
|
|
||||||
|
Result = FALSE;
|
||||||
EvpRsaKey = NULL;
|
EvpRsaKey = NULL;
|
||||||
EvpVerifyCtx = NULL;
|
EvpVerifyCtx = NULL;
|
||||||
KeyCtx = NULL;
|
KeyCtx = NULL;
|
||||||
|
@ -97,6 +97,7 @@ RsaPssSign (
|
|||||||
EVP_PKEY_CTX *KeyCtx;
|
EVP_PKEY_CTX *KeyCtx;
|
||||||
CONST EVP_MD *HashAlg;
|
CONST EVP_MD *HashAlg;
|
||||||
|
|
||||||
|
Result = FALSE;
|
||||||
EvpRsaKey = NULL;
|
EvpRsaKey = NULL;
|
||||||
EvpVerifyCtx = NULL;
|
EvpVerifyCtx = NULL;
|
||||||
KeyCtx = NULL;
|
KeyCtx = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user