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
@ -124,7 +124,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass,
|
|||||||
(int)(omax+ *pp));
|
(int)(omax+ *pp));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
if (*plength > (omax - (*pp - p)))
|
if (*plength > (omax - (p - *pp)))
|
||||||
{
|
{
|
||||||
ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG);
|
ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG);
|
||||||
/* Set this so that even if things are not long enough
|
/* Set this so that even if things are not long enough
|
||||||
|
Loading…
Reference in New Issue
Block a user