From eebeb52b29b512e82bdad789e844e3f0f391ac12 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 22 Sep 2006 13:37:15 +0000 Subject: [PATCH] Update length if copying MSB set in asn1_string_canon(). --- crypto/asn1/x_name.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index 9b0cf15d4a..07137ee91e 100644 --- a/crypto/asn1/x_name.c +++ b/crypto/asn1/x_name.c @@ -428,7 +428,10 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in) { /* If MSB set just copy across */ if (*from & 0x80) + { *to++ = *from++; + i++; + } /* Collapse multiple spaces */ else if (isspace(*from)) { -- 2.25.1