From d0bcad73253b7ea0a6f8a4ebd2aa567257cd2101 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 27 Apr 2020 08:43:18 +0200 Subject: [PATCH] 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) --- crypto/x509/v3_alt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1