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


crypto/x509v3/v3_ia5.c:80:1: start of procedure i2s_ASN1_IA5STRING()
78.   
79.   
80. > static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method,
81.   	     ASN1_IA5STRING *ia5)
82.   {

crypto/x509v3/v3_ia5.c:84:6: Taking false branch
82.   {
83.   	char *tmp;
84.   	if(!ia5 || !ia5->length) return NULL;
           ^
85.   	tmp = Malloc(ia5->length + 1);
86.   	memcpy(tmp, ia5->data, ia5->length);

crypto/x509v3/v3_ia5.c:84:14: Taking false branch
82.   {
83.   	char *tmp;
84.   	if(!ia5 || !ia5->length) return NULL;
                   ^
85.   	tmp = Malloc(ia5->length + 1);
86.   	memcpy(tmp, ia5->data, ia5->length);

crypto/x509v3/v3_ia5.c:85:2: 
83.   	char *tmp;
84.   	if(!ia5 || !ia5->length) return NULL;
85. > 	tmp = Malloc(ia5->length + 1);
86.   	memcpy(tmp, ia5->data, ia5->length);
87.   	tmp[ia5->length] = 0;

crypto/x509v3/v3_ia5.c:86:2: 
84.   	if(!ia5 || !ia5->length) return NULL;
85.   	tmp = Malloc(ia5->length + 1);
86. > 	memcpy(tmp, ia5->data, ia5->length);
87.   	tmp[ia5->length] = 0;
88.   	return tmp;
