Merge pull request #4808 from akallabeth/tls_extract_pem_fix
Fixed #4806 broken bounds check.
This commit is contained in:
commit
560552ce19
@ -1260,7 +1260,7 @@ static BOOL tls_extract_pem(CryptoCert cert, BYTE** PublicKey, DWORD* PublicKeyL
|
||||
|
||||
length = new_len;
|
||||
pemCert = new_cert;
|
||||
status = BIO_read(bio, &pemCert[offset], length);
|
||||
status = BIO_read(bio, &pemCert[offset], length - offset);
|
||||
|
||||
if (status < 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user