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


crypto/rand/rand_lib.c:834:1: start of procedure RAND_status()
832.   #endif
833.   
834. > int RAND_status(void)
835.   {
836.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:836:5: 
834.   int RAND_status(void)
835.   {
836. >     const RAND_METHOD *meth = RAND_get_rand_method();
837.   
838.       if (meth->status != NULL)

crypto/rand/rand_lib.c:719:1: start of procedure RAND_get_rand_method()
  717.   }
  718.   
  719. > const RAND_METHOD *RAND_get_rand_method(void)
  720.   {
  721.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:721:5: 
  719.   const RAND_METHOD *RAND_get_rand_method(void)
  720.   {
  721. >     const RAND_METHOD *tmp_meth = NULL;
  722.   
  723.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:723:10: 
  721.       const RAND_METHOD *tmp_meth = NULL;
  722.   
  723. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  724.           return NULL;
  725.   

crypto/threads_pthread.c:111:1: start of procedure CRYPTO_THREAD_run_once()
    109.   }
    110.   
    111. > int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void))
    112.   {
    113.       if (pthread_once(once, init) != 0)

crypto/threads_pthread.c:113:9: Taking true branch
    111.   int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void))
    112.   {
    113.       if (pthread_once(once, init) != 0)
                   ^
    114.           return 0;
    115.   

crypto/threads_pthread.c:114:9: 
    112.   {
    113.       if (pthread_once(once, init) != 0)
    114. >         return 0;
    115.   
    116.       return 1;

crypto/threads_pthread.c:117:1: return from a call to CRYPTO_THREAD_run_once
    115.   
    116.       return 1;
    117. > }
    118.   
    119.   int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *))

crypto/rand/rand_lib.c:723:10: Condition is false
  721.       const RAND_METHOD *tmp_meth = NULL;
  722.   
  723.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  724.           return NULL;
  725.   

crypto/rand/rand_lib.c:723:10: Taking true branch
  721.       const RAND_METHOD *tmp_meth = NULL;
  722.   
  723.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  724.           return NULL;
  725.   

crypto/rand/rand_lib.c:724:9: 
  722.   
  723.       if (!RUN_ONCE(&rand_init, do_rand_init))
  724. >         return NULL;
  725.   
  726.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:747:1: return from a call to RAND_get_rand_method
  745.       CRYPTO_THREAD_unlock(rand_meth_lock);
  746.       return tmp_meth;
  747. > }
  748.   
  749.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:838:9: 
836.       const RAND_METHOD *meth = RAND_get_rand_method();
837.   
838. >     if (meth->status != NULL)
839.           return meth->status();
840.       return 0;
