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


crypto/rand/rand_lib.c:341:1: start of procedure RAND_seed()
339.   #endif
340.   
341. > void RAND_seed(const void *buf, int num)
342.   {
343.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:343:5: 
341.   void RAND_seed(const void *buf, int num)
342.   {
343. >     const RAND_METHOD *meth = RAND_get_rand_method();
344.   
345.       if (meth->seed != NULL)

crypto/rand/rand_lib.c:285:1: start of procedure RAND_get_rand_method()
  283.   }
  284.   
  285. > const RAND_METHOD *RAND_get_rand_method(void)
  286.   {
  287.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:287:5: 
  285.   const RAND_METHOD *RAND_get_rand_method(void)
  286.   {
  287. >     const RAND_METHOD *tmp_meth = NULL;
  288.   
  289.       if (!RUN_ONCE(&rand_init, do_rand_init))

crypto/rand/rand_lib.c:289:10: 
  287.       const RAND_METHOD *tmp_meth = NULL;
  288.   
  289. >     if (!RUN_ONCE(&rand_init, do_rand_init))
  290.           return NULL;
  291.   

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:289:10: Condition is false
  287.       const RAND_METHOD *tmp_meth = NULL;
  288.   
  289.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  290.           return NULL;
  291.   

crypto/rand/rand_lib.c:289:10: Taking true branch
  287.       const RAND_METHOD *tmp_meth = NULL;
  288.   
  289.       if (!RUN_ONCE(&rand_init, do_rand_init))
                  ^
  290.           return NULL;
  291.   

crypto/rand/rand_lib.c:290:9: 
  288.   
  289.       if (!RUN_ONCE(&rand_init, do_rand_init))
  290. >         return NULL;
  291.   
  292.       CRYPTO_THREAD_write_lock(rand_meth_lock);

crypto/rand/rand_lib.c:313:1: return from a call to RAND_get_rand_method
  311.       CRYPTO_THREAD_unlock(rand_meth_lock);
  312.       return tmp_meth;
  313. > }
  314.   
  315.   #ifndef OPENSSL_NO_ENGINE

crypto/rand/rand_lib.c:345:9: 
343.       const RAND_METHOD *meth = RAND_get_rand_method();
344.   
345. >     if (meth->seed != NULL)
346.           meth->seed(buf, num);
347.   }
