summaryrefslogtreecommitdiffstats
path: root/crypto
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:01:22 +0100
commitf65ee7126401eedeaaeea845bb1a258cd2fc6040 (patch)
tree1691fcb36cc86cbfc598c413ff571d016d517a26 /crypto
parent91a9ad5356fe13d65701231ff9601e8df60ca925 (diff)
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) (cherry picked from commit 8fce04ee3540ba3039bb66df34ea3f076a599ab9)
Diffstat (limited to 'crypto')
-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 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;