crypto/async/async.c:398: error: MEMORY_LEAK
  memory dynamically allocated by call to `async_job_new()` at line 388, column 15 is not reachable after line 398, column 9.
Showing all 202 steps of the trace


crypto/async/async.c:354:1: start of procedure ASYNC_init_thread()
352.   }
353.   
354. > int ASYNC_init_thread(size_t max_size, size_t init_size)
355.   {
356.       async_pool *pool;

crypto/async/async.c:357:5: 
355.   {
356.       async_pool *pool;
357. >     size_t curr_size = 0;
358.   
359.       if (init_size > max_size) {

crypto/async/async.c:359:9: Taking false branch
357.       size_t curr_size = 0;
358.   
359.       if (init_size > max_size) {
               ^
360.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ASYNC_R_INVALID_POOL_SIZE);
361.           return 0;

crypto/async/async.c:364:5: Skipping OPENSSL_INIT_crypto_library_start(): empty list of specs
362.       }
363.   
364.       OPENSSL_INIT_crypto_library_start(OPENSSL_INIT_ASYNC, NULL);
           ^
365.       if (!ossl_init_thread_start(OPENSSL_INIT_THREAD_ASYNC)) {
366.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);

crypto/async/async.c:365:10: Taking false branch
363.   
364.       OPENSSL_INIT_crypto_library_start(OPENSSL_INIT_ASYNC, NULL);
365.       if (!ossl_init_thread_start(OPENSSL_INIT_THREAD_ASYNC)) {
                ^
366.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);
367.           return 0;

crypto/async/async.c:370:5: 
368.       }
369.   
370. >     pool = OPENSSL_zalloc(sizeof *pool);
371.       if (pool == NULL) {
372.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
  154.   }
  155.   
  156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
  157.   {
  158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
  156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  157.   {
  158. >     void *ret = CRYPTO_malloc(num, file, line);
  159.   
  160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
    117.   }
    118.   
    119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121.       void *ret = NULL;

crypto/mem.c:121:5: 
    119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121. >     void *ret = NULL;
    122.   
    123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (num <= 0)
                   ^
    124.           return NULL;
    125.   

crypto/mem.c:126:5: 
    124.           return NULL;
    125.   
    126. >     allow_customize = 0;
    127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
    134.       }
    135.   #else
    136. >     (void)file;
    137.       (void)line;
    138.       ret = malloc(num);

crypto/mem.c:137:5: 
    135.   #else
    136.       (void)file;
    137. >     (void)line;
    138.       ret = malloc(num);
    139.   #endif

crypto/mem.c:138:5: 
    136.       (void)file;
    137.       (void)line;
    138. >     ret = malloc(num);
    139.   #endif
    140.   

crypto/mem.c:153:5: 
    151.   #endif
    152.   
    153. >     return ret;
    154.   }
    155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
    152.   
    153.       return ret;
    154. > }
    155.   
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
  158.       void *ret = CRYPTO_malloc(num, file, line);
  159.   
  160.       if (ret != NULL)
                 ^
  161.           memset(ret, 0, num);
  162.       return ret;

crypto/mem.c:161:9: 
  159.   
  160.       if (ret != NULL)
  161. >         memset(ret, 0, num);
  162.       return ret;
  163.   }

crypto/mem.c:162:5: 
  160.       if (ret != NULL)
  161.           memset(ret, 0, num);
  162. >     return ret;
  163.   }
  164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
  161.           memset(ret, 0, num);
  162.       return ret;
  163. > }
  164.   
  165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/async/async.c:371:9: Taking false branch
369.   
370.       pool = OPENSSL_zalloc(sizeof *pool);
371.       if (pool == NULL) {
               ^
372.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);
373.           return 0;

crypto/async/async.c:376:5: 
374.       }
375.   
376. >     pool->jobs = sk_ASYNC_JOB_new_null();
377.       if (pool->jobs == NULL) {
378.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);

crypto/async/async_locl.h:89:1: start of procedure sk_ASYNC_JOB_new_null()
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {

crypto/stack/stack.c:144:1: start of procedure sk_new_null()
    142.   }
    143.   
    144. > _STACK *sk_new_null(void)
    145.   {
    146.       return sk_new((int (*)(const void *, const void *))0);

crypto/stack/stack.c:146:5: 
    144.   _STACK *sk_new_null(void)
    145.   {
    146. >     return sk_new((int (*)(const void *, const void *))0);
    147.   }
    148.   

crypto/stack/stack.c:149:1: start of procedure sk_new()
      147.   }
      148.   
      149. > _STACK *sk_new(int (*c) (const void *, const void *))
      150.   {
      151.       _STACK *ret;

crypto/stack/stack.c:153:9: 
      151.       _STACK *ret;
      152.   
      153. >     if ((ret = OPENSSL_zalloc(sizeof(_STACK))) == NULL)
      154.           goto err;
      155.       if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL)

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
        154.   }
        155.   
        156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
        157.   {
        158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
        156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
        157.   {
        158. >     void *ret = CRYPTO_malloc(num, file, line);
        159.   
        160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
          117.   }
          118.   
          119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
          120.   {
          121.       void *ret = NULL;

crypto/mem.c:121:5: 
          119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
          120.   {
          121. >     void *ret = NULL;
          122.   
          123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
          121.       void *ret = NULL;
          122.   
          123.       if (num <= 0)
                         ^
          124.           return NULL;
          125.   

crypto/mem.c:126:5: 
          124.           return NULL;
          125.   
          126. >     allow_customize = 0;
          127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
          128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
          134.       }
          135.   #else
          136. >     (void)file;
          137.       (void)line;
          138.       ret = malloc(num);

crypto/mem.c:137:5: 
          135.   #else
          136.       (void)file;
          137. >     (void)line;
          138.       ret = malloc(num);
          139.   #endif

crypto/mem.c:138:5: 
          136.       (void)file;
          137.       (void)line;
          138. >     ret = malloc(num);
          139.   #endif
          140.   

crypto/mem.c:153:5: 
          151.   #endif
          152.   
          153. >     return ret;
          154.   }
          155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
          152.   
          153.       return ret;
          154. > }
          155.   
          156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
        158.       void *ret = CRYPTO_malloc(num, file, line);
        159.   
        160.       if (ret != NULL)
                       ^
        161.           memset(ret, 0, num);
        162.       return ret;

crypto/mem.c:161:9: 
        159.   
        160.       if (ret != NULL)
        161. >         memset(ret, 0, num);
        162.       return ret;
        163.   }

crypto/mem.c:162:5: 
        160.       if (ret != NULL)
        161.           memset(ret, 0, num);
        162. >     return ret;
        163.   }
        164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
        161.           memset(ret, 0, num);
        162.       return ret;
        163. > }
        164.   
        165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/stack/stack.c:153:9: Taking false branch
      151.       _STACK *ret;
      152.   
      153.       if ((ret = OPENSSL_zalloc(sizeof(_STACK))) == NULL)
                     ^
      154.           goto err;
      155.       if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL)

crypto/stack/stack.c:155:9: 
      153.       if ((ret = OPENSSL_zalloc(sizeof(_STACK))) == NULL)
      154.           goto err;
      155. >     if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL)
      156.           goto err;
      157.       ret->comp = c;

crypto/mem.c:156:1: start of procedure CRYPTO_zalloc()
        154.   }
        155.   
        156. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
        157.   {
        158.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:158:5: 
        156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
        157.   {
        158. >     void *ret = CRYPTO_malloc(num, file, line);
        159.   
        160.       if (ret != NULL)

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
          117.   }
          118.   
          119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
          120.   {
          121.       void *ret = NULL;

crypto/mem.c:121:5: 
          119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
          120.   {
          121. >     void *ret = NULL;
          122.   
          123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
          121.       void *ret = NULL;
          122.   
          123.       if (num <= 0)
                         ^
          124.           return NULL;
          125.   

crypto/mem.c:126:5: 
          124.           return NULL;
          125.   
          126. >     allow_customize = 0;
          127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
          128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
          134.       }
          135.   #else
          136. >     (void)file;
          137.       (void)line;
          138.       ret = malloc(num);

crypto/mem.c:137:5: 
          135.   #else
          136.       (void)file;
          137. >     (void)line;
          138.       ret = malloc(num);
          139.   #endif

crypto/mem.c:138:5: 
          136.       (void)file;
          137.       (void)line;
          138. >     ret = malloc(num);
          139.   #endif
          140.   

crypto/mem.c:153:5: 
          151.   #endif
          152.   
          153. >     return ret;
          154.   }
          155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
          152.   
          153.       return ret;
          154. > }
          155.   
          156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:160:9: Taking true branch
        158.       void *ret = CRYPTO_malloc(num, file, line);
        159.   
        160.       if (ret != NULL)
                       ^
        161.           memset(ret, 0, num);
        162.       return ret;

crypto/mem.c:161:9: 
        159.   
        160.       if (ret != NULL)
        161. >         memset(ret, 0, num);
        162.       return ret;
        163.   }

crypto/mem.c:162:5: 
        160.       if (ret != NULL)
        161.           memset(ret, 0, num);
        162. >     return ret;
        163.   }
        164.   

crypto/mem.c:163:1: return from a call to CRYPTO_zalloc
        161.           memset(ret, 0, num);
        162.       return ret;
        163. > }
        164.   
        165.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/stack/stack.c:155:9: Taking false branch
      153.       if ((ret = OPENSSL_zalloc(sizeof(_STACK))) == NULL)
      154.           goto err;
      155.       if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL)
                     ^
      156.           goto err;
      157.       ret->comp = c;

crypto/stack/stack.c:157:5: 
      155.       if ((ret->data = OPENSSL_zalloc(sizeof(*ret->data) * MIN_NODES)) == NULL)
      156.           goto err;
      157. >     ret->comp = c;
      158.       ret->num_alloc = MIN_NODES;
      159.       return (ret);

crypto/stack/stack.c:158:5: 
      156.           goto err;
      157.       ret->comp = c;
      158. >     ret->num_alloc = MIN_NODES;
      159.       return (ret);
      160.   

crypto/stack/stack.c:159:5: 
      157.       ret->comp = c;
      158.       ret->num_alloc = MIN_NODES;
      159. >     return (ret);
      160.   
      161.    err:

crypto/stack/stack.c:164:1: return from a call to sk_new
      162.       OPENSSL_free(ret);
      163.       return (NULL);
      164. > }
      165.   
      166.   int sk_insert(_STACK *st, void *data, int loc)

crypto/stack/stack.c:147:1: return from a call to sk_new_null
    145.   {
    146.       return sk_new((int (*)(const void *, const void *))0);
    147. > }
    148.   
    149.   _STACK *sk_new(int (*c) (const void *, const void *))

crypto/async/async_locl.h:89:1: return from a call to sk_ASYNC_JOB_new_null
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {

crypto/async/async.c:377:9: Taking false branch
375.   
376.       pool->jobs = sk_ASYNC_JOB_new_null();
377.       if (pool->jobs == NULL) {
               ^
378.           ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_MALLOC_FAILURE);
379.           OPENSSL_free(pool);

crypto/async/async.c:383:5: 
381.       }
382.   
383. >     pool->max_size = max_size;
384.   
385.       /* Pre-create jobs as required */

crypto/async/async.c:386:12: Loop condition is true. Entering loop body
384.   
385.       /* Pre-create jobs as required */
386.       while (init_size--) {
                  ^
387.           ASYNC_JOB *job;
388.           job = async_job_new();

crypto/async/async.c:388:9: 
386.       while (init_size--) {
387.           ASYNC_JOB *job;
388. >         job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
390.               /*

crypto/async/async.c:118:1: start of procedure async_job_new()
  116.   }
  117.   
  118. > static ASYNC_JOB *async_job_new(void)
  119.   {
  120.       ASYNC_JOB *job = NULL;

crypto/async/async.c:120:5: 
  118.   static ASYNC_JOB *async_job_new(void)
  119.   {
  120. >     ASYNC_JOB *job = NULL;
  121.       OSSL_ASYNC_FD pipefds[2];
  122.   

crypto/async/async.c:123:5: 
  121.       OSSL_ASYNC_FD pipefds[2];
  122.   
  123. >     job = OPENSSL_malloc(sizeof (ASYNC_JOB));
  124.       if (job == NULL) {
  125.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ERR_R_MALLOC_FAILURE);

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
    117.   }
    118.   
    119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121.       void *ret = NULL;

crypto/mem.c:121:5: 
    119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121. >     void *ret = NULL;
    122.   
    123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (num <= 0)
                   ^
    124.           return NULL;
    125.   

crypto/mem.c:126:5: 
    124.           return NULL;
    125.   
    126. >     allow_customize = 0;
    127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
    134.       }
    135.   #else
    136. >     (void)file;
    137.       (void)line;
    138.       ret = malloc(num);

crypto/mem.c:137:5: 
    135.   #else
    136.       (void)file;
    137. >     (void)line;
    138.       ret = malloc(num);
    139.   #endif

crypto/mem.c:138:5: 
    136.       (void)file;
    137.       (void)line;
    138. >     ret = malloc(num);
    139.   #endif
    140.   

crypto/mem.c:153:5: 
    151.   #endif
    152.   
    153. >     return ret;
    154.   }
    155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
    152.   
    153.       return ret;
    154. > }
    155.   
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/async/async.c:124:9: Taking false branch
  122.   
  123.       job = OPENSSL_malloc(sizeof (ASYNC_JOB));
  124.       if (job == NULL) {
                 ^
  125.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ERR_R_MALLOC_FAILURE);
  126.           return NULL;

crypto/async/async.c:129:10: 
  127.       }
  128.   
  129. >     if (!async_pipe(pipefds)) {
  130.           OPENSSL_free(job);
  131.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ASYNC_R_CANNOT_CREATE_WAIT_PIPE);

crypto/async/arch/async_posix.c:106:1: start of procedure async_pipe()
    104.   }
    105.   
    106. > int async_pipe(OSSL_ASYNC_FD *pipefds)
    107.   {
    108.       if (pipe(pipefds) == 0)

crypto/async/arch/async_posix.c:108:9: Taking true branch
    106.   int async_pipe(OSSL_ASYNC_FD *pipefds)
    107.   {
    108.       if (pipe(pipefds) == 0)
                   ^
    109.           return 1;
    110.   

crypto/async/arch/async_posix.c:109:9: 
    107.   {
    108.       if (pipe(pipefds) == 0)
    109. >         return 1;
    110.   
    111.       return 0;

crypto/async/arch/async_posix.c:112:1: return from a call to async_pipe
    110.   
    111.       return 0;
    112. > }
    113.   
    114.   int async_close_fd(OSSL_ASYNC_FD fd)

crypto/async/async.c:129:10: Taking false branch
  127.       }
  128.   
  129.       if (!async_pipe(pipefds)) {
                  ^
  130.           OPENSSL_free(job);
  131.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ASYNC_R_CANNOT_CREATE_WAIT_PIPE);

crypto/async/async.c:135:5: 
  133.       }
  134.   
  135. >     job->wake_set = 0;
  136.       job->wait_fd = pipefds[0];
  137.       job->wake_fd = pipefds[1];

crypto/async/async.c:136:5: 
  134.   
  135.       job->wake_set = 0;
  136. >     job->wait_fd = pipefds[0];
  137.       job->wake_fd = pipefds[1];
  138.   

crypto/async/async.c:137:5: 
  135.       job->wake_set = 0;
  136.       job->wait_fd = pipefds[0];
  137. >     job->wake_fd = pipefds[1];
  138.   
  139.       job->status = ASYNC_JOB_RUNNING;

crypto/async/async.c:139:5: 
  137.       job->wake_fd = pipefds[1];
  138.   
  139. >     job->status = ASYNC_JOB_RUNNING;
  140.       job->funcargs = NULL;
  141.   

crypto/async/async.c:140:5: 
  138.   
  139.       job->status = ASYNC_JOB_RUNNING;
  140. >     job->funcargs = NULL;
  141.   
  142.       return job;

crypto/async/async.c:142:5: 
  140.       job->funcargs = NULL;
  141.   
  142. >     return job;
  143.   }
  144.   

crypto/async/async.c:143:1: return from a call to async_job_new
  141.   
  142.       return job;
  143. > }
  144.   
  145.   static void async_job_free(ASYNC_JOB *job)

crypto/async/async.c:389:13: Taking false branch
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
                   ^
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/async.c:389:29: 
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389. >         if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/arch/async_posix.c:83:1: start of procedure async_fibre_makecontext()
  81.   }
  82.   
  83. > int async_fibre_makecontext(async_fibre *fibre)
  84.   {
  85.       fibre->env_init = 0;

crypto/async/arch/async_posix.c:85:5: 
  83.   int async_fibre_makecontext(async_fibre *fibre)
  84.   {
  85. >     fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);

crypto/async/arch/async_posix.c:86:9: Taking true branch
  84.   {
  85.       fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
                ^
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {

crypto/async/arch/async_posix.c:87:9: 
  85.       fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
  87. >         fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
    117.   }
    118.   
    119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121.       void *ret = NULL;

crypto/mem.c:121:5: 
    119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121. >     void *ret = NULL;
    122.   
    123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (num <= 0)
                   ^
    124.           return NULL;
    125.   

crypto/mem.c:126:5: 
    124.           return NULL;
    125.   
    126. >     allow_customize = 0;
    127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
    134.       }
    135.   #else
    136. >     (void)file;
    137.       (void)line;
    138.       ret = malloc(num);

crypto/mem.c:137:5: 
    135.   #else
    136.       (void)file;
    137. >     (void)line;
    138.       ret = malloc(num);
    139.   #endif

crypto/mem.c:138:5: 
    136.       (void)file;
    137.       (void)line;
    138. >     ret = malloc(num);
    139.   #endif
    140.   

crypto/mem.c:153:5: 
    151.   #endif
    152.   
    153. >     return ret;
    154.   }
    155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
    152.   
    153.       return ret;
    154. > }
    155.   
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/async/arch/async_posix.c:88:13: Taking true branch
  86.       if (getcontext(&fibre->fibre) == 0) {
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
                    ^
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;

crypto/async/arch/async_posix.c:89:13: 
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89. >             fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);

crypto/async/arch/async_posix.c:90:13: 
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90. >             fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
  92.               return 1;

crypto/async/arch/async_posix.c:91:13: Skipping makecontext(): method has no implementation
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
                    ^
  92.               return 1;
  93.           }

crypto/async/arch/async_posix.c:92:13: 
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
  92. >             return 1;
  93.           }
  94.       } else {

crypto/async/arch/async_posix.c:98:1: return from a call to async_fibre_makecontext
  96.       }
  97.       return 0;
  98. > }
  99.   
  100.   void async_fibre_free(async_fibre *fibre)

crypto/async/async.c:389:29: Taking false branch
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
                                   ^
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/async.c:397:9: 
395.               break;
396.           }
397. >         job->funcargs = NULL;
398.           sk_ASYNC_JOB_push(pool->jobs, job);
399.           curr_size++;

crypto/async/async.c:398:9: 
396.           }
397.           job->funcargs = NULL;
398. >         sk_ASYNC_JOB_push(pool->jobs, job);
399.           curr_size++;
400.       }

crypto/async/async_locl.h:89:1: start of procedure sk_ASYNC_JOB_push()
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {

crypto/stack/stack.c:258:1: start of procedure sk_push()
    256.   }
    257.   
    258. > int sk_push(_STACK *st, void *data)
    259.   {
    260.       return (sk_insert(st, data, st->num));

crypto/stack/stack.c:260:5: 
    258.   int sk_push(_STACK *st, void *data)
    259.   {
    260. >     return (sk_insert(st, data, st->num));
    261.   }
    262.   

crypto/stack/stack.c:166:1: start of procedure sk_insert()
      164.   }
      165.   
      166. > int sk_insert(_STACK *st, void *data, int loc)
      167.   {
      168.       char **s;

crypto/stack/stack.c:170:9: Taking false branch
      168.       char **s;
      169.   
      170.       if (st == NULL)
                     ^
      171.           return 0;
      172.       if (st->num_alloc <= st->num + 1) {

crypto/stack/stack.c:172:9: Taking false branch
      170.       if (st == NULL)
      171.           return 0;
      172.       if (st->num_alloc <= st->num + 1) {
                     ^
      173.           s = OPENSSL_realloc((char *)st->data,
      174.                               (unsigned int)sizeof(char *) * st->num_alloc * 2);

crypto/stack/stack.c:180:10: Taking true branch
      178.           st->num_alloc *= 2;
      179.       }
      180.       if ((loc >= (int)st->num) || (loc < 0))
                      ^
      181.           st->data[st->num] = data;
      182.       else {

crypto/stack/stack.c:181:9: 
      179.       }
      180.       if ((loc >= (int)st->num) || (loc < 0))
      181. >         st->data[st->num] = data;
      182.       else {
      183.           memmove(&(st->data[loc + 1]),

crypto/stack/stack.c:187:5: 
      185.           st->data[loc] = data;
      186.       }
      187. >     st->num++;
      188.       st->sorted = 0;
      189.       return (st->num);

crypto/stack/stack.c:188:5: 
      186.       }
      187.       st->num++;
      188. >     st->sorted = 0;
      189.       return (st->num);
      190.   }

crypto/stack/stack.c:189:5: 
      187.       st->num++;
      188.       st->sorted = 0;
      189. >     return (st->num);
      190.   }
      191.   

crypto/stack/stack.c:190:1: return from a call to sk_insert
      188.       st->sorted = 0;
      189.       return (st->num);
      190. > }
      191.   
      192.   void *sk_delete_ptr(_STACK *st, void *p)

crypto/stack/stack.c:261:1: return from a call to sk_push
    259.   {
    260.       return (sk_insert(st, data, st->num));
    261. > }
    262.   
    263.   int sk_unshift(_STACK *st, void *data)

crypto/async/async_locl.h:89:1: return from a call to sk_ASYNC_JOB_push
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {

crypto/async/async.c:399:9: 
397.           job->funcargs = NULL;
398.           sk_ASYNC_JOB_push(pool->jobs, job);
399. >         curr_size++;
400.       }
401.       pool->curr_size = curr_size;

crypto/async/async.c:386:12: Loop condition is true. Entering loop body
384.   
385.       /* Pre-create jobs as required */
386.       while (init_size--) {
                  ^
387.           ASYNC_JOB *job;
388.           job = async_job_new();

crypto/async/async.c:388:9: 
386.       while (init_size--) {
387.           ASYNC_JOB *job;
388. >         job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
390.               /*

crypto/async/async.c:118:1: start of procedure async_job_new()
  116.   }
  117.   
  118. > static ASYNC_JOB *async_job_new(void)
  119.   {
  120.       ASYNC_JOB *job = NULL;

crypto/async/async.c:120:5: 
  118.   static ASYNC_JOB *async_job_new(void)
  119.   {
  120. >     ASYNC_JOB *job = NULL;
  121.       OSSL_ASYNC_FD pipefds[2];
  122.   

crypto/async/async.c:123:5: 
  121.       OSSL_ASYNC_FD pipefds[2];
  122.   
  123. >     job = OPENSSL_malloc(sizeof (ASYNC_JOB));
  124.       if (job == NULL) {
  125.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ERR_R_MALLOC_FAILURE);

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
    117.   }
    118.   
    119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121.       void *ret = NULL;

crypto/mem.c:121:5: 
    119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121. >     void *ret = NULL;
    122.   
    123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (num <= 0)
                   ^
    124.           return NULL;
    125.   

crypto/mem.c:126:5: 
    124.           return NULL;
    125.   
    126. >     allow_customize = 0;
    127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
    134.       }
    135.   #else
    136. >     (void)file;
    137.       (void)line;
    138.       ret = malloc(num);

crypto/mem.c:137:5: 
    135.   #else
    136.       (void)file;
    137. >     (void)line;
    138.       ret = malloc(num);
    139.   #endif

crypto/mem.c:138:5: 
    136.       (void)file;
    137.       (void)line;
    138. >     ret = malloc(num);
    139.   #endif
    140.   

crypto/mem.c:153:5: 
    151.   #endif
    152.   
    153. >     return ret;
    154.   }
    155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
    152.   
    153.       return ret;
    154. > }
    155.   
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/async/async.c:124:9: Taking false branch
  122.   
  123.       job = OPENSSL_malloc(sizeof (ASYNC_JOB));
  124.       if (job == NULL) {
                 ^
  125.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ERR_R_MALLOC_FAILURE);
  126.           return NULL;

crypto/async/async.c:129:10: 
  127.       }
  128.   
  129. >     if (!async_pipe(pipefds)) {
  130.           OPENSSL_free(job);
  131.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ASYNC_R_CANNOT_CREATE_WAIT_PIPE);

crypto/async/arch/async_posix.c:106:1: start of procedure async_pipe()
    104.   }
    105.   
    106. > int async_pipe(OSSL_ASYNC_FD *pipefds)
    107.   {
    108.       if (pipe(pipefds) == 0)

crypto/async/arch/async_posix.c:108:9: Taking true branch
    106.   int async_pipe(OSSL_ASYNC_FD *pipefds)
    107.   {
    108.       if (pipe(pipefds) == 0)
                   ^
    109.           return 1;
    110.   

crypto/async/arch/async_posix.c:109:9: 
    107.   {
    108.       if (pipe(pipefds) == 0)
    109. >         return 1;
    110.   
    111.       return 0;

crypto/async/arch/async_posix.c:112:1: return from a call to async_pipe
    110.   
    111.       return 0;
    112. > }
    113.   
    114.   int async_close_fd(OSSL_ASYNC_FD fd)

crypto/async/async.c:129:10: Taking false branch
  127.       }
  128.   
  129.       if (!async_pipe(pipefds)) {
                  ^
  130.           OPENSSL_free(job);
  131.           ASYNCerr(ASYNC_F_ASYNC_JOB_NEW, ASYNC_R_CANNOT_CREATE_WAIT_PIPE);

crypto/async/async.c:135:5: 
  133.       }
  134.   
  135. >     job->wake_set = 0;
  136.       job->wait_fd = pipefds[0];
  137.       job->wake_fd = pipefds[1];

crypto/async/async.c:136:5: 
  134.   
  135.       job->wake_set = 0;
  136. >     job->wait_fd = pipefds[0];
  137.       job->wake_fd = pipefds[1];
  138.   

crypto/async/async.c:137:5: 
  135.       job->wake_set = 0;
  136.       job->wait_fd = pipefds[0];
  137. >     job->wake_fd = pipefds[1];
  138.   
  139.       job->status = ASYNC_JOB_RUNNING;

crypto/async/async.c:139:5: 
  137.       job->wake_fd = pipefds[1];
  138.   
  139. >     job->status = ASYNC_JOB_RUNNING;
  140.       job->funcargs = NULL;
  141.   

crypto/async/async.c:140:5: 
  138.   
  139.       job->status = ASYNC_JOB_RUNNING;
  140. >     job->funcargs = NULL;
  141.   
  142.       return job;

crypto/async/async.c:142:5: 
  140.       job->funcargs = NULL;
  141.   
  142. >     return job;
  143.   }
  144.   

crypto/async/async.c:143:1: return from a call to async_job_new
  141.   
  142.       return job;
  143. > }
  144.   
  145.   static void async_job_free(ASYNC_JOB *job)

crypto/async/async.c:389:13: Taking false branch
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
                   ^
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/async.c:389:29: 
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389. >         if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/arch/async_posix.c:83:1: start of procedure async_fibre_makecontext()
  81.   }
  82.   
  83. > int async_fibre_makecontext(async_fibre *fibre)
  84.   {
  85.       fibre->env_init = 0;

crypto/async/arch/async_posix.c:85:5: 
  83.   int async_fibre_makecontext(async_fibre *fibre)
  84.   {
  85. >     fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);

crypto/async/arch/async_posix.c:86:9: Taking true branch
  84.   {
  85.       fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
                ^
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {

crypto/async/arch/async_posix.c:87:9: 
  85.       fibre->env_init = 0;
  86.       if (getcontext(&fibre->fibre) == 0) {
  87. >         fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;

crypto/mem.c:119:1: start of procedure CRYPTO_malloc()
    117.   }
    118.   
    119. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121.       void *ret = NULL;

crypto/mem.c:121:5: 
    119.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    120.   {
    121. >     void *ret = NULL;
    122.   
    123.       if (num <= 0)

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (num <= 0)
                   ^
    124.           return NULL;
    125.   

crypto/mem.c:126:5: 
    124.           return NULL;
    125.   
    126. >     allow_customize = 0;
    127.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    128.       if (call_malloc_debug) {

crypto/mem.c:136:5: 
    134.       }
    135.   #else
    136. >     (void)file;
    137.       (void)line;
    138.       ret = malloc(num);

crypto/mem.c:137:5: 
    135.   #else
    136.       (void)file;
    137. >     (void)line;
    138.       ret = malloc(num);
    139.   #endif

crypto/mem.c:138:5: 
    136.       (void)file;
    137.       (void)line;
    138. >     ret = malloc(num);
    139.   #endif
    140.   

crypto/mem.c:153:5: 
    151.   #endif
    152.   
    153. >     return ret;
    154.   }
    155.   

crypto/mem.c:154:1: return from a call to CRYPTO_malloc
    152.   
    153.       return ret;
    154. > }
    155.   
    156.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/async/arch/async_posix.c:88:13: Taking true branch
  86.       if (getcontext(&fibre->fibre) == 0) {
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
                    ^
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;

crypto/async/arch/async_posix.c:89:13: 
  87.           fibre->fibre.uc_stack.ss_sp = OPENSSL_malloc(STACKSIZE);
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89. >             fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);

crypto/async/arch/async_posix.c:90:13: 
  88.           if (fibre->fibre.uc_stack.ss_sp != NULL) {
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90. >             fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
  92.               return 1;

crypto/async/arch/async_posix.c:91:13: Skipping makecontext(): method has no implementation
  89.               fibre->fibre.uc_stack.ss_size = STACKSIZE;
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
                    ^
  92.               return 1;
  93.           }

crypto/async/arch/async_posix.c:92:13: 
  90.               fibre->fibre.uc_link = NULL;
  91.               makecontext(&fibre->fibre, async_start_func, 0);
  92. >             return 1;
  93.           }
  94.       } else {

crypto/async/arch/async_posix.c:98:1: return from a call to async_fibre_makecontext
  96.       }
  97.       return 0;
  98. > }
  99.   
  100.   void async_fibre_free(async_fibre *fibre)

crypto/async/async.c:389:29: Taking false branch
387.           ASYNC_JOB *job;
388.           job = async_job_new();
389.           if (job == NULL || !async_fibre_makecontext(&job->fibrectx)) {
                                   ^
390.               /*
391.                * Not actually fatal because we already created the pool, just

crypto/async/async.c:397:9: 
395.               break;
396.           }
397. >         job->funcargs = NULL;
398.           sk_ASYNC_JOB_push(pool->jobs, job);
399.           curr_size++;

crypto/async/async.c:398:9: 
396.           }
397.           job->funcargs = NULL;
398. >         sk_ASYNC_JOB_push(pool->jobs, job);
399.           curr_size++;
400.       }

crypto/async/async_locl.h:89:1: start of procedure sk_ASYNC_JOB_push()
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {

crypto/stack/stack.c:258:1: start of procedure sk_push()
    256.   }
    257.   
    258. > int sk_push(_STACK *st, void *data)
    259.   {
    260.       return (sk_insert(st, data, st->num));

crypto/stack/stack.c:260:5: 
    258.   int sk_push(_STACK *st, void *data)
    259.   {
    260. >     return (sk_insert(st, data, st->num));
    261.   }
    262.   

crypto/stack/stack.c:166:1: start of procedure sk_insert()
      164.   }
      165.   
      166. > int sk_insert(_STACK *st, void *data, int loc)
      167.   {
      168.       char **s;

crypto/stack/stack.c:170:9: Taking false branch
      168.       char **s;
      169.   
      170.       if (st == NULL)
                     ^
      171.           return 0;
      172.       if (st->num_alloc <= st->num + 1) {

crypto/stack/stack.c:172:9: Taking false branch
      170.       if (st == NULL)
      171.           return 0;
      172.       if (st->num_alloc <= st->num + 1) {
                     ^
      173.           s = OPENSSL_realloc((char *)st->data,
      174.                               (unsigned int)sizeof(char *) * st->num_alloc * 2);

crypto/stack/stack.c:180:10: Taking true branch
      178.           st->num_alloc *= 2;
      179.       }
      180.       if ((loc >= (int)st->num) || (loc < 0))
                      ^
      181.           st->data[st->num] = data;
      182.       else {

crypto/stack/stack.c:181:9: 
      179.       }
      180.       if ((loc >= (int)st->num) || (loc < 0))
      181. >         st->data[st->num] = data;
      182.       else {
      183.           memmove(&(st->data[loc + 1]),

crypto/stack/stack.c:187:5: 
      185.           st->data[loc] = data;
      186.       }
      187. >     st->num++;
      188.       st->sorted = 0;
      189.       return (st->num);

crypto/stack/stack.c:188:5: 
      186.       }
      187.       st->num++;
      188. >     st->sorted = 0;
      189.       return (st->num);
      190.   }

crypto/stack/stack.c:189:5: 
      187.       st->num++;
      188.       st->sorted = 0;
      189. >     return (st->num);
      190.   }
      191.   

crypto/stack/stack.c:190:1: return from a call to sk_insert
      188.       st->sorted = 0;
      189.       return (st->num);
      190. > }
      191.   
      192.   void *sk_delete_ptr(_STACK *st, void *p)

crypto/stack/stack.c:261:1: return from a call to sk_push
    259.   {
    260.       return (sk_insert(st, data, st->num));
    261. > }
    262.   
    263.   int sk_unshift(_STACK *st, void *data)

crypto/async/async_locl.h:89:1: return from a call to sk_ASYNC_JOB_push
  87.   };
  88.   
  89. > DEFINE_STACK_OF(ASYNC_JOB)
  90.   
  91.   struct async_pool_st {
