diff options
author | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-04 02:55:30 +0000 |
---|---|---|
committer | tye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-04 02:55:30 +0000 |
commit | d3945da6446cac381620340eced7c22b50d8ef44 (patch) | |
tree | 33ee9d49a4800e14211eff89bd8e2bd61d2c6545 /CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c | |
parent | 8536cc4b37e12d11af9432d6e73e3c8c84c68b79 (diff) | |
download | edk2-platforms-d3945da6446cac381620340eced7c22b50d8ef44.tar.xz |
Update return FALSE to ASSERT() for code consistent.
Signed-off-by: tye
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12659 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c')
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c b/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c index ed53b2dcbf..0b37adc33e 100644 --- a/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c +++ b/CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c @@ -84,10 +84,7 @@ RsaGetPrivateKeyFromPem ( //
ASSERT (PemData != NULL);
ASSERT (RsaContext != NULL);
-
- if (PemSize > INT_MAX) {
- return FALSE;
- }
+ ASSERT (PemSize <= INT_MAX);
Status = FALSE;
PemBio = NULL;
|