Correct a bug in the ASN.1 decoder which was introduced with the
recent OpenSSL update. Obtained from: OpenSSL CVS
This commit is contained in:
parent
4f20a5a274
commit
b1357e1cec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-crypto/openssl/dist/; revision=101386
@ -124,7 +124,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass,
|
||||
(int)(omax+ *pp));
|
||||
|
||||
#endif
|
||||
if (*plength > (omax - (*pp - p)))
|
||||
if (*plength > (omax - (p - *pp)))
|
||||
{
|
||||
ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG);
|
||||
/* Set this so that even if things are not long enough
|
||||
|
Loading…
Reference in New Issue
Block a user