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


crypto/rand/rand_lib.c:816:1: start of procedure RAND_pseudo_bytes()
814.   
815.   #if !OPENSSL_API_1_1_0 && !defined(FIPS_MODE)
816. > int RAND_pseudo_bytes(unsigned char *buf, int num)
817.   {
818.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:818:5: 
816.   int RAND_pseudo_bytes(unsigned char *buf, int num)
817.   {
818. >     const RAND_METHOD *meth = RAND_get_rand_method();
819.   
820.       if (meth->pseudorand != NULL)

crypto/rand/rand_lib.c:686:1: start of procedure RAND_get_rand_method()
  684.   #endif
  685.   
  686. > const RAND_METHOD *RAND_get_rand_method(void)
  687.   {
  688.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:689:5: 
  687.   {
  688.   #ifdef FIPS_MODE
  689. >     return NULL;
  690.   #else
  691.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:718:1: return from a call to RAND_get_rand_method
  716.       return tmp_meth;
  717.   #endif
  718. > }
  719.   
  720.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:820:9: 
818.       const RAND_METHOD *meth = RAND_get_rand_method();
819.   
820. >     if (meth->pseudorand != NULL)
821.           return meth->pseudorand(buf, num);
822.       return -1;
