crypto/x509v3/v3_prn.c:131: error: NULL_DEREFERENCE
  pointer `extoct` last assigned on line 130 could be null and is dereferenced by call to `ASN1_STRING_data()` at line 131, column 9.
Showing all 13 steps of the trace


crypto/x509v3/v3_prn.c:118:1: start of procedure X509V3_EXT_print()
116.   /* Main routine: print out a general extension */
117.   
118. > int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,
119.                        int indent)
120.   {

crypto/x509v3/v3_prn.c:121:5: 
119.                        int indent)
120.   {
121. >     void *ext_str = NULL;
122.       char *value = NULL;
123.       ASN1_OCTET_STRING *extoct;

crypto/x509v3/v3_prn.c:122:5: 
120.   {
121.       void *ext_str = NULL;
122. >     char *value = NULL;
123.       ASN1_OCTET_STRING *extoct;
124.       const unsigned char *p;

crypto/x509v3/v3_prn.c:127:5: 
125.       int extlen;
126.       const X509V3_EXT_METHOD *method;
127. >     STACK_OF(CONF_VALUE) *nval = NULL;
128.       int ok = 1;
129.   

crypto/x509v3/v3_prn.c:128:5: 
126.       const X509V3_EXT_METHOD *method;
127.       STACK_OF(CONF_VALUE) *nval = NULL;
128. >     int ok = 1;
129.   
130.       extoct = X509_EXTENSION_get_data(ext);

crypto/x509v3/v3_prn.c:130:5: 
128.       int ok = 1;
129.   
130. >     extoct = X509_EXTENSION_get_data(ext);
131.       p = ASN1_STRING_data(extoct);
132.       extlen = ASN1_STRING_length(extoct);

crypto/x509/x509_v3.c:271:1: start of procedure X509_EXTENSION_get_data()
  269.   }
  270.   
  271. > ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ex)
  272.   {
  273.       if (ex == NULL)

crypto/x509/x509_v3.c:273:9: Taking true branch
  271.   ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ex)
  272.   {
  273.       if (ex == NULL)
                 ^
  274.           return (NULL);
  275.       return (ex->value);

crypto/x509/x509_v3.c:274:9: 
  272.   {
  273.       if (ex == NULL)
  274. >         return (NULL);
  275.       return (ex->value);
  276.   }

crypto/x509/x509_v3.c:276:1: return from a call to X509_EXTENSION_get_data
  274.           return (NULL);
  275.       return (ex->value);
  276. > }
  277.   
  278.   int X509_EXTENSION_get_critical(X509_EXTENSION *ex)

crypto/x509v3/v3_prn.c:131:5: 
129.   
130.       extoct = X509_EXTENSION_get_data(ext);
131. >     p = ASN1_STRING_data(extoct);
132.       extlen = ASN1_STRING_length(extoct);
133.   

crypto/asn1/asn1_lib.c:476:1: start of procedure ASN1_STRING_data()
  474.   }
  475.   
  476. > unsigned char *ASN1_STRING_data(ASN1_STRING *x)
  477.   {
  478.       return x->data;

crypto/asn1/asn1_lib.c:478:5: 
  476.   unsigned char *ASN1_STRING_data(ASN1_STRING *x)
  477.   {
  478. >     return x->data;
  479.   }
