diff options
author | Matt Caswell <matt@openssl.org> | 2019-02-05 14:25:18 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-02-07 14:25:38 +0000 |
commit | e1cce612a6520555805c25be2539f231c22696d9 (patch) | |
tree | cf00b063a466262ec03139f85beac4608df87bc0 /include | |
parent | 3b09585bd67c41445be4be8a84233e5d9a699264 (diff) |
Make OPENSSL_malloc_init() a no-op
Making this a no-op removes a potential infinite loop than can occur in
some situations.
Fixes #2865
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8167)
(cherry picked from commit ef45aa14c5af024fcb8bef1c9007f3d1c115bd85)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/crypto.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 150fc1ae54..22ad0423da 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -109,13 +109,8 @@ DEFINE_STACK_OF(void) # define CRYPTO_EX_INDEX_DRBG 15 # define CRYPTO_EX_INDEX__COUNT 16 -/* - * This is the default callbacks, but we can have others as well: this is - * needed in Win32 where the application malloc and the library malloc may - * not be the same. - */ -#define OPENSSL_malloc_init() \ - CRYPTO_set_mem_functions(CRYPTO_malloc, CRYPTO_realloc, CRYPTO_free) +/* No longer needed, so this is a no-op */ +#define OPENSSL_malloc_init() while(0) continue int CRYPTO_mem_ctrl(int mode); |