*** /siux_share/ae/cc/11//openssl-1.0.1e/crypto/mem.c Mon Feb 11 16:26:04 2013 --- crypto/mem.c Tue Apr 16 15:23:42 2013 *************** *** 74,82 **** /* the following pointers may be changed as long as 'allow_customize' is set */ ! static void *(*malloc_func)(size_t) = malloc; static void *default_malloc_ex(size_t num, const char *file, int line) ! { return malloc_func(num); } static void *(*malloc_ex_func)(size_t, const char *file, int line) = default_malloc_ex; --- 74,92 ---- /* the following pointers may be changed as long as 'allow_customize' is set */ ! static void* ae_malloc(size_t num) { ! void *ret; ! fprintf(stderr, "ae_malloc(%zu) ==> ...\n", num); ! ret = malloc(num+85); ! fprintf(stderr, "ae_malloc85+40(%zu) ==> %p\n", num, ret); ! return ret+40; ! } ! ! static void *(*malloc_func)(size_t) = ae_malloc; static void *default_malloc_ex(size_t num, const char *file, int line) ! { ! fprintf(stderr, "default_malloc_ex(%zu, '%s', %i)\n", num, file, line); ! return malloc_func(num); } static void *(*malloc_ex_func)(size_t, const char *file, int line) = default_malloc_ex; *************** *** 89,97 **** static void (*free_func)(void *) = free; ! static void *(*malloc_locked_func)(size_t) = malloc; static void *default_malloc_locked_ex(size_t num, const char *file, int line) ! { return malloc_locked_func(num); } static void *(*malloc_locked_ex_func)(size_t, const char *file, int line) = default_malloc_locked_ex; --- 99,109 ---- static void (*free_func)(void *) = free; ! static void *(*malloc_locked_func)(size_t) = ae_malloc; static void *default_malloc_locked_ex(size_t num, const char *file, int line) ! { ! fprintf(stderr, "default_malloc_locked_ex(%zu, '%s', %i)\n", num, file, line); ! return malloc_locked_func(num); } static void *(*malloc_locked_ex_func)(size_t, const char *file, int line) = default_malloc_locked_ex;