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


crypto/rand/rand_lib.c:847:1: start of procedure RAND_status()
845.   #endif
846.   
847. > int RAND_status(void)
848.   {
849.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:849:5: 
847.   int RAND_status(void)
848.   {
849. >     const RAND_METHOD *meth = RAND_get_rand_method();
850.   
851.       if (meth->status != NULL)

crypto/rand/rand_lib.c:732:1: start of procedure RAND_get_rand_method()
  730.   }
  731.   
  732. > const RAND_METHOD *RAND_get_rand_method(void)
  733.   {
  734.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:734:5: 
  732.   const RAND_METHOD *RAND_get_rand_method(void)
  733.   {
  734. >     const RAND_METHOD *tmp_meth = NULL;
  735.   
  736.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:736:10: 
  734.       const RAND_METHOD *tmp_meth = NULL;
  735.   
  736. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  737.           return NULL;
  738.   

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:736:10: Condition is false
  734.       const RAND_METHOD *tmp_meth = NULL;
  735.   
  736.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  737.           return NULL;
  738.   

crypto/rand/rand_lib.c:736:10: Taking true branch
  734.       const RAND_METHOD *tmp_meth = NULL;
  735.   
  736.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  737.           return NULL;
  738.   

crypto/rand/rand_lib.c:737:9: 
  735.   
  736.       if (!RUN_ONCE(&rand_init, do_rand_init))
  737. >         return NULL;
  738.   
  739.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:760:1: return from a call to RAND_get_rand_method
  758.       CRYPTO_THREAD_unlock(rand_meth_lock);
  759.       return tmp_meth;
  760. > }
  761.   
  762.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:851:9: 
849.       const RAND_METHOD *meth = RAND_get_rand_method();
850.   
851. >     if (meth->status != NULL)
852.           return meth->status();
853.       return 0;
