aboutsummaryrefslogtreecommitdiff
path: root/crypto/ec
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-02-23 13:46:01 +1000
committerRichard Levitte <levitte@openssl.org>2017-02-24 00:00:32 +0100
commit8fce04ee3540ba3039bb66df34ea3f076a599ab9 (patch)
treee72ae04357a7668f7dd7d6f2673155dfba222755 /crypto/ec
parent4483e23444fa18034344874ffbe67919207e9e47 (diff)
downloadopenssl-8fce04ee3540ba3039bb66df34ea3f076a599ab9.zip
openssl-8fce04ee3540ba3039bb66df34ea3f076a599ab9.tar.gz
openssl-8fce04ee3540ba3039bb66df34ea3f076a599ab9.tar.bz2
Increase the size of the stack buffer to prevent an overflow.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2721)
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/eck_prn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/eck_prn.c b/crypto/ec/eck_prn.c
index dd3f857..3e826cb 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;