From f65ee7126401eedeaaeea845bb1a258cd2fc6040 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 23 Feb 2017 13:46:01 +1000 Subject: [PATCH] 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) --- crypto/ec/eck_prn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1