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

Andy Polyakov appro at openssl.org
Sun Jun 12 22:10:17 UTC 2016


The branch OpenSSL_1_0_2-stable has been updated
       via  6397ac585d6d4101be0fb742ac0db5074bd4e8a6 (commit)
      from  80e07cc7f0ce97b8898780082d70e0cb0adb3f61 (commit)


- Log -----------------------------------------------------------------
commit 6397ac585d6d4101be0fb742ac0db5074bd4e8a6
Author: Andy Polyakov <appro at openssl.org>
Date:   Sun Jun 12 20:04:50 2016 +0200

    crypto/mem.c: drop reference to cleanse_ctr and fix no-asm builds.
    
    crypto/mem_clr.c was harmonized with master branch and doesn't use
    cleanse_ctr kludge anymore.
    
    RT#4563
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

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

Summary of changes:
 crypto/mem.c | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/crypto/mem.c b/crypto/mem.c
index fdad49b..1e873e3 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -298,18 +298,6 @@ void *CRYPTO_malloc_locked(int num, const char *file, int line)
     if (malloc_debug_func != NULL)
         malloc_debug_func(ret, num, file, line, 1);
 
-#ifndef OPENSSL_CPUID_OBJ
-    /*
-     * Create a dependency on the value of 'cleanse_ctr' so our memory
-     * sanitisation function can't be optimised out. NB: We only do this for
-     * >2Kb so the overhead doesn't bother us.
-     */
-    if (ret && (num > 2048)) {
-        extern unsigned char cleanse_ctr;
-        ((unsigned char *)ret)[0] = cleanse_ctr;
-    }
-#endif
-
     return ret;
 }
 
@@ -346,18 +334,6 @@ void *CRYPTO_malloc(int num, const char *file, int line)
     if (malloc_debug_func != NULL)
         malloc_debug_func(ret, num, file, line, 1);
 
-#ifndef OPENSSL_CPUID_OBJ
-    /*
-     * Create a dependency on the value of 'cleanse_ctr' so our memory
-     * sanitisation function can't be optimised out. NB: We only do this for
-     * >2Kb so the overhead doesn't bother us.
-     */
-    if (ret && (num > 2048)) {
-        extern unsigned char cleanse_ctr;
-        ((unsigned char *)ret)[0] = cleanse_ctr;
-    }
-#endif
-
     return ret;
 }
 


More information about the openssl-commits mailing list