diff options
author | Philippe Antoine <p.antoine@catenacyber.fr> | 2018-03-21 08:27:34 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-21 17:33:20 +0000 |
commit | 63ff89ab71d38f03bb56603e4048a1dc143942b2 (patch) | |
tree | 4c6cb0f2d06577c6ebbf52357c0d691c0f69ede3 /ssl/t1_trce.c | |
parent | ddc1caac2d6b22250f78ae9e0d392c923bc85933 (diff) |
Fixes integer underflow with SSL_trace support
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5706)
Diffstat (limited to 'ssl/t1_trce.c')
-rw-r--r-- | ssl/t1_trce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c index 55f1824183..f8d0501aa5 100644 --- a/ssl/t1_trce.c +++ b/ssl/t1_trce.c @@ -729,7 +729,7 @@ static int ssl_print_extension(BIO *bio, int indent, int server, while (xlen > 0) { size_t plen = *ext++; - if (plen > xlen + 1) + if (plen + 1 > xlen) return 0; BIO_indent(bio, indent + 2, 80); BIO_write(bio, ext, plen); |