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

Rich Salz rsalz at openssl.org
Mon Jul 24 23:34:51 UTC 2017


The branch OpenSSL_1_0_2-stable has been updated
       via  5bb84670ff1cf45e5d997eeaf48f34eab721d01f (commit)
      from  34ee5a19d827ae14a641413e579bbec0a6f546fd (commit)


- Log -----------------------------------------------------------------
commit 5bb84670ff1cf45e5d997eeaf48f34eab721d01f
Author: Xiaoyin Liu <xiaoyinl at users.noreply.github.com>
Date:   Mon Jul 24 11:28:50 2017 -0400

    schlock global variable needs to be volatile
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4000)
    
    (cherry picked from commit e0de4dd5a2b0c0dc27e6a6ab01fabe374d657d23)

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

Summary of changes:
 apps/speed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/speed.c b/apps/speed.c
index 5c0996b..5259c16 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -307,7 +307,8 @@ static SIGRETTYPE sig_done(int sig)
 #  if !defined(SIGALRM)
 #   define SIGALRM
 #  endif
-static unsigned int lapse, schlock;
+static volatile unsigned int lapse;
+static volatile unsigned int schlock;
 static void alarm_win32(unsigned int secs)
 {
     lapse = secs * 1000;


More information about the openssl-commits mailing list