crypto/rand/rand_lib.c:795: error: NULL_DEREFERENCE
  pointer `meth` last assigned on line 793 could be null and is dereferenced at line 795, column 9.
Showing all 14 steps of the trace


crypto/rand/rand_lib.c:791:1: start of procedure RAND_add()
789.   }
790.   
791. > void RAND_add(const void *buf, int num, double randomness)
792.   {
793.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:793:5: 
791.   void RAND_add(const void *buf, int num, double randomness)
792.   {
793. >     const RAND_METHOD *meth = RAND_get_rand_method();
794.   
795.       if (meth->add != NULL)

crypto/rand/rand_lib.c:727:1: start of procedure RAND_get_rand_method()
  725.   }
  726.   
  727. > const RAND_METHOD *RAND_get_rand_method(void)
  728.   {
  729.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:729:5: 
  727.   const RAND_METHOD *RAND_get_rand_method(void)
  728.   {
  729. >     const RAND_METHOD *tmp_meth = NULL;
  730.   
  731.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:731:10: 
  729.       const RAND_METHOD *tmp_meth = NULL;
  730.   
  731. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  732.           return NULL;
  733.   

crypto/threads_pthread.c:105:1: start of procedure CRYPTO_THREAD_run_once()
    103.   }
    104.   
    105. > int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void))
    106.   {
    107.       if (pthread_once(once, init) != 0)

crypto/threads_pthread.c:107:9: Taking true branch
    105.   int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void))
    106.   {
    107.       if (pthread_once(once, init) != 0)
                   ^
    108.           return 0;
    109.   

crypto/threads_pthread.c:108:9: 
    106.   {
    107.       if (pthread_once(once, init) != 0)
    108. >         return 0;
    109.   
    110.       return 1;

crypto/threads_pthread.c:111:1: return from a call to CRYPTO_THREAD_run_once
    109.   
    110.       return 1;
    111. > }
    112.   
    113.   int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *))

crypto/rand/rand_lib.c:731:10: Condition is false
  729.       const RAND_METHOD *tmp_meth = NULL;
  730.   
  731.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  732.           return NULL;
  733.   

crypto/rand/rand_lib.c:731:10: Taking true branch
  729.       const RAND_METHOD *tmp_meth = NULL;
  730.   
  731.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  732.           return NULL;
  733.   

crypto/rand/rand_lib.c:732:9: 
  730.   
  731.       if (!RUN_ONCE(&rand_init, do_rand_init))
  732. >         return NULL;
  733.   
  734.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:755:1: return from a call to RAND_get_rand_method
  753.       CRYPTO_THREAD_unlock(rand_meth_lock);
  754.       return tmp_meth;
  755. > }
  756.   
  757.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:795:9: 
793.       const RAND_METHOD *meth = RAND_get_rand_method();
794.   
795. >     if (meth->add != NULL)
796.           meth->add(buf, num, randomness);
797.   }
