crypto/x509/x509_cmp.c:41: error: NULL_DEREFERENCE
  pointer `null` is dereferenced by call to `X509_NAME_oneline()` at line 41, column 9.
Showing all 22 steps of the trace


crypto/x509/x509_cmp.c:32:1: start of procedure X509_issuer_and_serial_hash()
30.   
31.   #ifndef OPENSSL_NO_MD5
32. > unsigned long X509_issuer_and_serial_hash(X509 *a)
33.   {
34.       unsigned long ret = 0;

crypto/x509/x509_cmp.c:34:5: 
32.   unsigned long X509_issuer_and_serial_hash(X509 *a)
33.   {
34. >     unsigned long ret = 0;
35.       EVP_MD_CTX *ctx = EVP_MD_CTX_new();
36.       unsigned char md[16];

crypto/x509/x509_cmp.c:35:5: 
33.   {
34.       unsigned long ret = 0;
35. >     EVP_MD_CTX *ctx = EVP_MD_CTX_new();
36.       unsigned char md[16];
37.       char *f;

crypto/evp/digest.c:74:1: start of procedure EVP_MD_CTX_new()
  72.   }
  73.   
  74. > EVP_MD_CTX *EVP_MD_CTX_new(void)
  75.   {
  76.       return OPENSSL_zalloc(sizeof(EVP_MD_CTX));

crypto/evp/digest.c:76:5: 
  74.   EVP_MD_CTX *EVP_MD_CTX_new(void)
  75.   {
  76. >     return OPENSSL_zalloc(sizeof(EVP_MD_CTX));
  77.   }
  78.   

providers/fips/fipsprov.c:460:1: start of procedure CRYPTO_zalloc()
    458.   }
    459.   
    460. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    461.   {
    462.       return c_CRYPTO_zalloc(num, file, line);

providers/fips/fipsprov.c:462:5: Skipping __function_pointer__(): unresolved function pointer
    460.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    461.   {
    462.       return c_CRYPTO_zalloc(num, file, line);
               ^
    463.   }
    464.   

providers/fips/fipsprov.c:463:1: return from a call to CRYPTO_zalloc
    461.   {
    462.       return c_CRYPTO_zalloc(num, file, line);
    463. > }
    464.   
    465.   void CRYPTO_free(void *ptr, const char *file, int line)

crypto/evp/digest.c:77:1: return from a call to EVP_MD_CTX_new
  75.   {
  76.       return OPENSSL_zalloc(sizeof(EVP_MD_CTX));
  77. > }
  78.   
  79.   void EVP_MD_CTX_free(EVP_MD_CTX *ctx)

crypto/x509/x509_cmp.c:39:9: Taking false branch
37.       char *f;
38.   
39.       if (ctx == NULL)
              ^
40.           goto err;
41.       f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0);

crypto/x509/x509_cmp.c:41:5: 
39.       if (ctx == NULL)
40.           goto err;
41. >     f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0);
42.       if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL))
43.           goto err;

crypto/x509/x509_obj.c:24:1: start of procedure X509_NAME_oneline()
  22.   #define NAME_ONELINE_MAX    (1024 * 1024)
  23.   
  24. > char *X509_NAME_oneline(const X509_NAME *a, char *buf, int len)
  25.   {
  26.       const X509_NAME_ENTRY *ne;

crypto/x509/x509_obj.c:32:5: 
  30.       char *p;
  31.       unsigned char *q;
  32. >     BUF_MEM *b = NULL;
  33.       static const char hex[17] = "0123456789ABCDEF";
  34.       int gs_doit[4];

crypto/x509/x509_obj.c:33:5: 
  31.       unsigned char *q;
  32.       BUF_MEM *b = NULL;
  33. >     static const char hex[17] = "0123456789ABCDEF";
  34.       int gs_doit[4];
  35.       char tmp_buf[80];

crypto/x509/x509_obj.c:40:9: Taking false branch
  38.   #endif
  39.   
  40.       if (buf == NULL) {
                ^
  41.           if ((b = BUF_MEM_new()) == NULL)
  42.               goto err;

crypto/x509/x509_obj.c:47:16: Taking false branch
  45.           b->data[0] = '\0';
  46.           len = 200;
  47.       } else if (len == 0) {
                       ^
  48.           return NULL;
  49.       }

crypto/x509/x509_obj.c:50:9: Taking true branch
  48.           return NULL;
  49.       }
  50.       if (a == NULL) {
                ^
  51.           if (b) {
  52.               buf = b->data;

crypto/x509/x509_obj.c:51:13: Taking false branch
  49.       }
  50.       if (a == NULL) {
  51.           if (b) {
                    ^
  52.               buf = b->data;
  53.               OPENSSL_free(b);

crypto/x509/x509_obj.c:55:9: 
  53.               OPENSSL_free(b);
  54.           }
  55. >         strncpy(buf, "NO X509_NAME", len);
  56.           buf[len - 1] = '\0';
  57.           return buf;

crypto/x509/x509_obj.c:56:9: 
  54.           }
  55.           strncpy(buf, "NO X509_NAME", len);
  56. >         buf[len - 1] = '\0';
  57.           return buf;
  58.       }

crypto/x509/x509_obj.c:57:9: 
  55.           strncpy(buf, "NO X509_NAME", len);
  56.           buf[len - 1] = '\0';
  57. >         return buf;
  58.       }
  59.   

crypto/x509/x509_obj.c:181:1: return from a call to X509_NAME_oneline
  179.       BUF_MEM_free(b);
  180.       return NULL;
  181. > }
