From: Richard Levitte Date: Mon, 27 Apr 2020 06:43:18 +0000 (+0200) Subject: crypto/x509/v3_alt.c: make 'othername' a bit bigger X-Git-Tag: openssl-3.0.0-alpha2~154 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0bcad73253b7ea0a6f8a4ebd2aa567257cd2101;p=oweals%2Fopenssl.git crypto/x509/v3_alt.c: make 'othername' a bit bigger We want to fill 'othername' with the contents of 'oline' (256 bytes) plus some additional text. We need to ensure that 'othername' is large enough to contain this. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11656) --- diff --git a/crypto/x509/v3_alt.c b/crypto/x509/v3_alt.c index f15bbdbd21..52e936a3af 100644 --- a/crypto/x509/v3_alt.c +++ b/crypto/x509/v3_alt.c @@ -82,7 +82,7 @@ STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, STACK_OF(CONF_VALUE) *ret) { unsigned char *p; - char othername[256]; + char othername[300]; char oline[256], htmp[5]; int i;