[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Rich Salz rsalz at openssl.org
Tue Feb 7 17:51:18 UTC 2017


The branch OpenSSL_1_0_2-stable has been updated
       via  89ec60912c649417ce2288be005bee0c66122803 (commit)
      from  1c5ebcd87822c2af4b8fdc23fa8b9a7201fb7097 (commit)


- Log -----------------------------------------------------------------
commit 89ec60912c649417ce2288be005bee0c66122803
Author: Rich Salz <rsalz at openssl.org>
Date:   Mon Feb 6 14:22:29 2017 -0500

    If BIO_snprintf failed, keep trying.
    
    Thanks to Graeme Perrow for reporting and providing a possible fix.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2565)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bio/bio_cb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crypto/bio/bio_cb.c b/crypto/bio/bio_cb.c
index d3e8606..f96294b 100644
--- a/crypto/bio/bio_cb.c
+++ b/crypto/bio/bio_cb.c
@@ -78,6 +78,9 @@ long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp,
 
     len = BIO_snprintf(buf,sizeof buf,"BIO[%p]: ",(void *)bio);
 
+    /* Ignore errors and continue printing the other information. */
+    if (len < 0)
+        len = 0;
     p = buf + len;
     p_maxlen = sizeof(buf) - len;
 


More information about the openssl-commits mailing list