crypto/x509v3/v3_ia5.c:92: error: NULL_DEREFERENCE
  pointer `tmp` last assigned on line 91 could be null and is dereferenced by call to `memcpy()` at line 92, column 2.
Showing all 5 steps of the trace


crypto/x509v3/v3_ia5.c:86:1: start of procedure i2s_ASN1_IA5STRING()
84.   }
85.   
86. > static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method,
87.   	     ASN1_IA5STRING *ia5)
88.   {

crypto/x509v3/v3_ia5.c:90:6: Taking false branch
88.   {
89.   	char *tmp;
90.   	if(!ia5 || !ia5->length) return NULL;
           ^
91.   	tmp = Malloc(ia5->length + 1);
92.   	memcpy(tmp, ia5->data, ia5->length);

crypto/x509v3/v3_ia5.c:90:14: Taking false branch
88.   {
89.   	char *tmp;
90.   	if(!ia5 || !ia5->length) return NULL;
                   ^
91.   	tmp = Malloc(ia5->length + 1);
92.   	memcpy(tmp, ia5->data, ia5->length);

crypto/x509v3/v3_ia5.c:91:2: 
89.   	char *tmp;
90.   	if(!ia5 || !ia5->length) return NULL;
91. > 	tmp = Malloc(ia5->length + 1);
92.   	memcpy(tmp, ia5->data, ia5->length);
93.   	tmp[ia5->length] = 0;

crypto/x509v3/v3_ia5.c:92:2: 
90.   	if(!ia5 || !ia5->length) return NULL;
91.   	tmp = Malloc(ia5->length + 1);
92. > 	memcpy(tmp, ia5->data, ia5->length);
93.   	tmp[ia5->length] = 0;
94.   	return tmp;
