[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Tue Feb 21 17:31:32 UTC 2017


The branch master has been updated
       via  5e1f879ab5a2bfdf2d58222f965f93fe1b511ce7 (commit)
      from  70e14ffbaf6a67dab56c24cae01f1248cf3f1e77 (commit)


- Log -----------------------------------------------------------------
commit 5e1f879ab5a2bfdf2d58222f965f93fe1b511ce7
Author: Hikar <hikar at davelog.net>
Date:   Sat Feb 18 08:44:49 2017 +0100

    Removed ugly size_t less than zero check.
    
    CLA: trivial.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2674)

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

Summary of changes:
 crypto/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/mem.c b/crypto/mem.c
index aae92d4..0584814 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -162,7 +162,7 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
     if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
         return malloc_impl(num, file, line);
 
-    if (num <= 0)
+    if (num == 0)
         return NULL;
 
     FAILTEST();


More information about the openssl-commits mailing list