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


crypto/rand/rand_lib.c:829:1: start of procedure RAND_status()
827.   #endif
828.   
829. > int RAND_status(void)
830.   {
831.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:831:5: 
829.   int RAND_status(void)
830.   {
831. >     const RAND_METHOD *meth = RAND_get_rand_method();
832.   
833.       if (meth->status != NULL)

crypto/rand/rand_lib.c:714:1: start of procedure RAND_get_rand_method()
  712.   }
  713.   
  714. > const RAND_METHOD *RAND_get_rand_method(void)
  715.   {
  716.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:716:5: 
  714.   const RAND_METHOD *RAND_get_rand_method(void)
  715.   {
  716. >     const RAND_METHOD *tmp_meth = NULL;
  717.   
  718.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:718:10: 
  716.       const RAND_METHOD *tmp_meth = NULL;
  717.   
  718. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  719.           return NULL;
  720.   

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:718:10: Condition is false
  716.       const RAND_METHOD *tmp_meth = NULL;
  717.   
  718.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  719.           return NULL;
  720.   

crypto/rand/rand_lib.c:718:10: Taking true branch
  716.       const RAND_METHOD *tmp_meth = NULL;
  717.   
  718.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  719.           return NULL;
  720.   

crypto/rand/rand_lib.c:719:9: 
  717.   
  718.       if (!RUN_ONCE(&rand_init, do_rand_init))
  719. >         return NULL;
  720.   
  721.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:742:1: return from a call to RAND_get_rand_method
  740.       CRYPTO_THREAD_unlock(rand_meth_lock);
  741.       return tmp_meth;
  742. > }
  743.   
  744.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:833:9: 
831.       const RAND_METHOD *meth = RAND_get_rand_method();
832.   
833. >     if (meth->status != NULL)
834.           return meth->status();
835.       return 0;
