From 1318510f8cfe60c522e93795f326d02d76ea04fe Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 14 Aug 2002 00:36:44 +0000 Subject: [PATCH] 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. --- CHANGES | 4 +++- crypto/objects/obj_dat.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index a18af51395..8b947b8518 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,9 @@ 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] diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index 41fdf6e7b2..76f2e05f50 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -417,7 +417,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name) a2d_ASN1_OBJECT(p,i,s,-1); p=buf; - op=d2i_ASN1_OBJECT(NULL,&p,i); + op=d2i_ASN1_OBJECT(NULL,&p,j); OPENSSL_free(buf); return op; } -- 2.25.1