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


crypto/rand/rand_lib.c:731:1: start of procedure RAND_seed()
729.   #endif
730.   
731. > void RAND_seed(const void *buf, int num)
732.   {
733.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:733:5: 
731.   void RAND_seed(const void *buf, int num)
732.   {
733. >     const RAND_METHOD *meth = RAND_get_rand_method();
734.   
735.       if (meth->seed != NULL)

crypto/rand/rand_lib.c:671:1: start of procedure RAND_get_rand_method()
  669.   #endif
  670.   
  671. > const RAND_METHOD *RAND_get_rand_method(void)
  672.   {
  673.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:676:5: 
  674.       return NULL;
  675.   #else
  676. >     const RAND_METHOD *tmp_meth = NULL;
  677.   
  678.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:678:10: 
  676.       const RAND_METHOD *tmp_meth = NULL;
  677.   
  678. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  679.           return NULL;
  680.   

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:678:10: Condition is false
  676.       const RAND_METHOD *tmp_meth = NULL;
  677.   
  678.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  679.           return NULL;
  680.   

crypto/rand/rand_lib.c:678:10: Taking true branch
  676.       const RAND_METHOD *tmp_meth = NULL;
  677.   
  678.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  679.           return NULL;
  680.   

crypto/rand/rand_lib.c:679:9: 
  677.   
  678.       if (!RUN_ONCE(&rand_init, do_rand_init))
  679. >         return NULL;
  680.   
  681.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:703:1: return from a call to RAND_get_rand_method
  701.       return tmp_meth;
  702.   #endif
  703. > }
  704.   
  705.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:735:9: 
733.       const RAND_METHOD *meth = RAND_get_rand_method();
734.   
735. >     if (meth->seed != NULL)
736.           meth->seed(buf, num);
737.   }
