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


crypto/rand/rand_lib.c:782:1: start of procedure RAND_seed()
780.   #endif
781.   
782. > void RAND_seed(const void *buf, int num)
783.   {
784.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:784:5: 
782.   void RAND_seed(const void *buf, int num)
783.   {
784. >     const RAND_METHOD *meth = RAND_get_rand_method();
785.   
786.       if (meth->seed != NULL)

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

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

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

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:730:10: Condition is false
  728.       const RAND_METHOD *tmp_meth = NULL;
  729.   
  730.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  731.           return NULL;
  732.   

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

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

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

crypto/rand/rand_lib.c:786:9: 
784.       const RAND_METHOD *meth = RAND_get_rand_method();
785.   
786. >     if (meth->seed != NULL)
787.           meth->seed(buf, num);
788.   }
