test/evp_test.c:1755: error: NULL_DEREFERENCE
  pointer `edata` last assigned on line 1752 could be null and is dereferenced at line 1755, column 9.
Showing all 15 steps of the trace


test/evp_test.c:1750:1: start of procedure encode_test_init()
1748.   };
1749.   
1750. > static int encode_test_init(struct evp_test *t, const char *encoding)
1751.   {
1752.       struct encode_data *edata = OPENSSL_zalloc(sizeof(*edata));

test/evp_test.c:1752:5: 
1750.   static int encode_test_init(struct evp_test *t, const char *encoding)
1751.   {
1752. >     struct encode_data *edata = OPENSSL_zalloc(sizeof(*edata));
1753.   
1754.       if (strcmp(encoding, "canonical") == 0) {

crypto/mem.c:185:1: start of procedure CRYPTO_zalloc()
  183.   }
  184.   
  185. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
  186.   {
  187.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:187:5: 
  185.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  186.   {
  187. >     void *ret = CRYPTO_malloc(num, file, line);
  188.   
  189.       FAILTEST();

crypto/mem.c:157:1: start of procedure CRYPTO_malloc()
    155.   #endif
    156.   
    157. > void *CRYPTO_malloc(size_t num, const char *file, int line)
    158.   {
    159.       void *ret = NULL;

crypto/mem.c:159:5: 
    157.   void *CRYPTO_malloc(size_t num, const char *file, int line)
    158.   {
    159. >     void *ret = NULL;
    160.   
    161.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)

crypto/mem.c:161:9: Taking true branch
    159.       void *ret = NULL;
    160.   
    161.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                   ^
    162.           return malloc_impl(num, file, line);
    163.   

crypto/mem.c:161:32: Taking true branch
    159.       void *ret = NULL;
    160.   
    161.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                                          ^
    162.           return malloc_impl(num, file, line);
    163.   

crypto/mem.c:162:9: Skipping __function_pointer__(): unresolved function pointer
    160.   
    161.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
    162.           return malloc_impl(num, file, line);
                   ^
    163.   
    164.       if (num <= 0)

crypto/mem.c:183:1: return from a call to CRYPTO_malloc
    181.   
    182.       return ret;
    183. > }
    184.   
    185.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:190:9: Taking false branch
  188.   
  189.       FAILTEST();
  190.       if (ret != NULL)
                 ^
  191.           memset(ret, 0, num);
  192.       return ret;

crypto/mem.c:192:5: 
  190.       if (ret != NULL)
  191.           memset(ret, 0, num);
  192. >     return ret;
  193.   }
  194.   

crypto/mem.c:193:1: return from a call to CRYPTO_zalloc
  191.           memset(ret, 0, num);
  192.       return ret;
  193. > }
  194.   
  195.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

test/evp_test.c:1754:9: Taking true branch
1752.       struct encode_data *edata = OPENSSL_zalloc(sizeof(*edata));
1753.   
1754.       if (strcmp(encoding, "canonical") == 0) {
                ^
1755.           edata->encoding = BASE64_CANONICAL_ENCODING;
1756.       } else if (strcmp(encoding, "valid") == 0) {

test/evp_test.c:1755:9: 
1753.   
1754.       if (strcmp(encoding, "canonical") == 0) {
1755. >         edata->encoding = BASE64_CANONICAL_ENCODING;
1756.       } else if (strcmp(encoding, "valid") == 0) {
1757.           edata->encoding = BASE64_VALID_ENCODING;
