mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
45cada1339
Add the check for the return value of EVP_MD_get_size() to avoid invalid negative numbers and then explicitly cast from int to size_t. Add the check to prevent that EVP_MD_get_size() returns a value greater than EVP_MAX_MD_SIZE. Signed-off-by: Jiasheng Jiang <jiashengjiangcool@outlook.com> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24802) |
||
---|---|---|
.. | ||
demoSRP | ||
include | ||
lib | ||
asn1parse.c | ||
build.info | ||
ca-cert.srl | ||
ca-key.pem | ||
ca-req.pem | ||
ca.c | ||
CA.pl.in | ||
cert.pem | ||
ciphers.c | ||
client.pem | ||
cmp.c | ||
cms.c | ||
crl2pkcs7.c | ||
crl.c | ||
ct_log_list.cnf | ||
dgst.c | ||
dhparam.c | ||
dsa512.pem | ||
dsa1024.pem | ||
dsa-ca.pem | ||
dsa-pca.pem | ||
dsa.c | ||
dsap.pem | ||
dsaparam.c | ||
ec.c | ||
ecparam.c | ||
enc.c | ||
engine.c | ||
errstr.c | ||
fipsinstall.c | ||
gendsa.c | ||
genpkey.c | ||
genrsa.c | ||
info.c | ||
insta.ca.crt | ||
kdf.c | ||
list.c | ||
mac.c | ||
nseq.c | ||
ocsp.c | ||
openssl-vms.cnf | ||
openssl.c | ||
openssl.cnf | ||
passwd.c | ||
pca-cert.srl | ||
pca-key.pem | ||
pca-req.pem | ||
pkcs7.c | ||
pkcs8.c | ||
pkcs12.c | ||
pkey.c | ||
pkeyparam.c | ||
pkeyutl.c | ||
prime.c | ||
privkey.pem | ||
progs.pl | ||
rand.c | ||
rehash.c | ||
req.c | ||
req.pem | ||
rsa8192.pem | ||
rsa.c | ||
rsautl.c | ||
s512-key.pem | ||
s512-req.pem | ||
s1024key.pem | ||
s1024req.pem | ||
s_client.c | ||
s_server.c | ||
s_time.c | ||
server2.pem | ||
server.pem | ||
server.srl | ||
sess_id.c | ||
smime.c | ||
speed.c | ||
spkac.c | ||
srp.c | ||
storeutl.c | ||
testCA.pem | ||
testdsa.h | ||
testrsa.h | ||
timeouts.h | ||
ts.c | ||
tsget.in | ||
verify.c | ||
version.c | ||
vms_decc_init.c | ||
x509.c |