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


crypto/rand/rand_lib.c:900:1: start of procedure RAND_pseudo_bytes()
898.   
899.   #if !OPENSSL_API_1_1_0 && !defined(FIPS_MODE)
900. > int RAND_pseudo_bytes(unsigned char *buf, int num)
901.   {
902.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:902:5: 
900.   int RAND_pseudo_bytes(unsigned char *buf, int num)
901.   {
902. >     const RAND_METHOD *meth = RAND_get_rand_method();
903.   
904.       if (meth->pseudorand != NULL)

crypto/rand/rand_lib.c:770:1: start of procedure RAND_get_rand_method()
  768.   #endif
  769.   
  770. > const RAND_METHOD *RAND_get_rand_method(void)
  771.   {
  772.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:773:5: 
  771.   {
  772.   #ifdef FIPS_MODE
  773. >     return NULL;
  774.   #else
  775.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:802:1: return from a call to RAND_get_rand_method
  800.       return tmp_meth;
  801.   #endif
  802. > }
  803.   
  804.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:904:9: 
902.       const RAND_METHOD *meth = RAND_get_rand_method();
903.   
904. >     if (meth->pseudorand != NULL)
905.           return meth->pseudorand(buf, num);
906.       return -1;
