Fix typo in OBJ_txt2obj which incorrectly passed the content
length, instead of the encoding length to d2i_ASN1_OBJECT. This wasn't visible before becuse ASN1_get_object() used to read past the length of the supplied buffer.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
Changes between 0.9.6g and 0.9.6h [xx XXX xxxx]
|
Changes between 0.9.6g and 0.9.6h [xx XXX xxxx]
|
||||||
|
|
||||||
*)
|
*) Fix typo in OBJ_txt2obj which incorrectly passed the content
|
||||||
|
length, instead of the encoding length to d2i_ASN1_OBJECT.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
|
Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
|
||||||
|
|
||||||
|
@@ -417,7 +417,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name)
|
|||||||
a2d_ASN1_OBJECT(p,i,s,-1);
|
a2d_ASN1_OBJECT(p,i,s,-1);
|
||||||
|
|
||||||
p=buf;
|
p=buf;
|
||||||
op=d2i_ASN1_OBJECT(NULL,&p,i);
|
op=d2i_ASN1_OBJECT(NULL,&p,j);
|
||||||
OPENSSL_free(buf);
|
OPENSSL_free(buf);
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user