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


crypto/rand/rand_lib.c:905:1: start of procedure RAND_pseudo_bytes()
903.   
904.   #if !OPENSSL_API_1_1_0 && !defined(FIPS_MODE)
905. > int RAND_pseudo_bytes(unsigned char *buf, int num)
906.   {
907.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:907:5: 
905.   int RAND_pseudo_bytes(unsigned char *buf, int num)
906.   {
907. >     const RAND_METHOD *meth = RAND_get_rand_method();
908.   
909.       if (meth->pseudorand != NULL)

crypto/rand/rand_lib.c:775:1: start of procedure RAND_get_rand_method()
  773.   #endif
  774.   
  775. > const RAND_METHOD *RAND_get_rand_method(void)
  776.   {
  777.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:778:5: 
  776.   {
  777.   #ifdef FIPS_MODE
  778. >     return NULL;
  779.   #else
  780.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:807:1: return from a call to RAND_get_rand_method
  805.       return tmp_meth;
  806.   #endif
  807. > }
  808.   
  809.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:909:9: 
907.       const RAND_METHOD *meth = RAND_get_rand_method();
908.   
909. >     if (meth->pseudorand != NULL)
910.           return meth->pseudorand(buf, num);
911.       return -1;
