From: Pauli Date: Thu, 23 Feb 2017 03:46:01 +0000 (+1000) Subject: Increase the size of the stack buffer to prevent an overflow. X-Git-Tag: OpenSSL_1_0_2l~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f65ee7126401eedeaaeea845bb1a258cd2fc6040;p=oweals%2Fopenssl.git Increase the size of the stack buffer to prevent an overflow. Reviewed-by: Rich Salz Reviewed-by: Andy Polyakov Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2721) (cherry picked from commit 8fce04ee3540ba3039bb66df34ea3f076a599ab9) --- diff --git a/crypto/ec/eck_prn.c b/crypto/ec/eck_prn.c index df9b37a750..176ec1f173 100644 --- a/crypto/ec/eck_prn.c +++ b/crypto/ec/eck_prn.c @@ -342,7 +342,7 @@ static int print_bin(BIO *fp, const char *name, const unsigned char *buf, size_t len, int off) { size_t i; - char str[128]; + char str[128 + 1 + 4]; if (buf == NULL) return 1;