From 9c74778078a27db373323a93c4bb0ff7c5e42509 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 30 May 2014 20:10:00 +0000 Subject: Don't add potentially nasty stderr uses to dead CRYPTO_dbg_mem functions. But do use the abort(), which we are hoping all future vendors will move towards the more modern "do not flush streams"; hint hint, if you didn't do that already, there are grave risks because much software brings risk without that behaviour. We didn't cause the change.. POSIX did... ok beck --- src/lib/libcrypto/mem_dbg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/mem_dbg.c') diff --git a/src/lib/libcrypto/mem_dbg.c b/src/lib/libcrypto/mem_dbg.c index 288ee907c3..3e56c79a25 100644 --- a/src/lib/libcrypto/mem_dbg.c +++ b/src/lib/libcrypto/mem_dbg.c @@ -162,14 +162,14 @@ void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, int before_p) { - fprintf(stderr, "this is a bad idea"); + /* CRYPTO_dbg_malloc is no longer permitted */ abort(); } void CRYPTO_dbg_free(void *addr, int before_p) { - fprintf(stderr, "this is a bad idea"); + /* CRYPTO_dbg_free is no longer permitted */ abort(); } @@ -177,7 +177,7 @@ void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, int line, int before_p) { - fprintf(stderr, "this is a bad idea"); + /* CRYPTO_dbg_realloc is no longer permitted */ abort(); } -- cgit v1.2.3-55-g6feb