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


crypto/rand/rand_lib.c:827:1: start of procedure RAND_bytes()
825.   }
826.   
827. > int RAND_bytes(unsigned char *buf, int num)
828.   {
829.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:829:5: 
827.   int RAND_bytes(unsigned char *buf, int num)
828.   {
829. >     const RAND_METHOD *meth = RAND_get_rand_method();
830.   
831.       if (meth->bytes != NULL)

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

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

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

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

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

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

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

crypto/rand/rand_lib.c:831:9: 
829.       const RAND_METHOD *meth = RAND_get_rand_method();
830.   
831. >     if (meth->bytes != NULL)
832.           return meth->bytes(buf, num);
833.       RANDerr(RAND_F_RAND_BYTES, RAND_R_FUNC_NOT_IMPLEMENTED);
