From 8fce04ee3540ba3039bb66df34ea3f076a599ab9 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) --- 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 dd3f8579c3..3e826cb138 100644 --- a/crypto/ec/eck_prn.c +++ b/crypto/ec/eck_prn.c @@ -238,7 +238,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.25.1