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


crypto/rand/rand_lib.c:227:1: start of procedure RAND_status()
225.   #endif
226.   
227. > int RAND_status(void)
228.   {
229.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:229:5: 
227.   int RAND_status(void)
228.   {
229. >     const RAND_METHOD *meth = RAND_get_rand_method();
230.   
231.       if (meth->status != NULL)

crypto/rand/rand_lib.c:134:1: start of procedure RAND_get_rand_method()
  132.   }
  133.   
  134. > const RAND_METHOD *RAND_get_rand_method(void)
  135.   {
  136.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:136:5: 
  134.   const RAND_METHOD *RAND_get_rand_method(void)
  135.   {
  136. >     const RAND_METHOD *tmp_meth = NULL;
  137.   
  138.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:138:10: 
  136.       const RAND_METHOD *tmp_meth = NULL;
  137.   
  138. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  139.           return NULL;
  140.   

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:138:10: Condition is false
  136.       const RAND_METHOD *tmp_meth = NULL;
  137.   
  138.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  139.           return NULL;
  140.   

crypto/rand/rand_lib.c:138:10: Taking true branch
  136.       const RAND_METHOD *tmp_meth = NULL;
  137.   
  138.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  139.           return NULL;
  140.   

crypto/rand/rand_lib.c:139:9: 
  137.   
  138.       if (!RUN_ONCE(&rand_init, do_rand_init))
  139. >         return NULL;
  140.   
  141.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:162:1: return from a call to RAND_get_rand_method
  160.       CRYPTO_THREAD_unlock(rand_meth_lock);
  161.       return tmp_meth;
  162. > }
  163.   
  164.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:231:9: 
229.       const RAND_METHOD *meth = RAND_get_rand_method();
230.   
231. >     if (meth->status != NULL)
232.           return meth->status();
233.       return 0;
