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


crypto/rand/rand_lib.c:852:1: start of procedure RAND_pseudo_bytes()
850.   
851.   #if !OPENSSL_API_1_1_0 && !defined(FIPS_MODE)
852. > int RAND_pseudo_bytes(unsigned char *buf, int num)
853.   {
854.       const RAND_METHOD *meth = RAND_get_rand_method();

crypto/rand/rand_lib.c:854:5: 
852.   int RAND_pseudo_bytes(unsigned char *buf, int num)
853.   {
854. >     const RAND_METHOD *meth = RAND_get_rand_method();
855.   
856.       if (meth->pseudorand != NULL)

crypto/rand/rand_lib.c:722:1: start of procedure RAND_get_rand_method()
  720.   #endif
  721.   
  722. > const RAND_METHOD *RAND_get_rand_method(void)
  723.   {
  724.   #ifdef FIPS_MODE

crypto/rand/rand_lib.c:725:5: 
  723.   {
  724.   #ifdef FIPS_MODE
  725. >     return NULL;
  726.   #else
  727.       const RAND_METHOD *tmp_meth = NULL;

crypto/rand/rand_lib.c:754:1: return from a call to RAND_get_rand_method
  752.       return tmp_meth;
  753.   #endif
  754. > }
  755.   
  756.   #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODE)

crypto/rand/rand_lib.c:856:9: 
854.       const RAND_METHOD *meth = RAND_get_rand_method();
855.   
856. >     if (meth->pseudorand != NULL)
857.           return meth->pseudorand(buf, num);
858.       return -1;
