diff options
author | Pauli <paul.dale@oracle.com> | 2017-02-23 13:46:01 +1000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-02-24 00:01:17 +0100 |
commit | b5cd178f9dd057a76147ccd307bd3cb0672ac098 (patch) | |
tree | d743d6c2e2791e8ad8dad9246a76fa72bdd07b10 /crypto | |
parent | d9856b5365570852bfd6f6d59dbd4480a11e6c70 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |