apps/apps.c:1413: error: NULL_DEREFERENCE
  pointer `p` last assigned on line 1412 could be null and is dereferenced by call to `strcpy()` at line 1413, column 2.
Showing all 19 steps of the trace


apps/apps.c:1407:1: start of procedure make_config_name()
1405.   	}
1406.   
1407. > char *make_config_name()
1408.   	{
1409.   	const char *t=X509_get_default_cert_area();

apps/apps.c:1409:2: 
1407.   char *make_config_name()
1408.   	{
1409. > 	const char *t=X509_get_default_cert_area();
1410.   	char *p;
1411.   

crypto/x509/x509_def.c:67:1: start of procedure X509_get_default_cert_area()
  65.   	{ return(X509_PRIVATE_DIR); }
  66.   	
  67. > const char *X509_get_default_cert_area(void)
  68.   	{ return(X509_CERT_AREA); }
  69.   

crypto/x509/x509_def.c:68:4: 
  66.   	
  67.   const char *X509_get_default_cert_area(void)
  68. > 	{ return(X509_CERT_AREA); }
  69.   
  70.   const char *X509_get_default_cert_dir(void)

crypto/x509/x509_def.c:68:28: return from a call to X509_get_default_cert_area
  66.   	
  67.   const char *X509_get_default_cert_area(void)
  68.   	{ return(X509_CERT_AREA); }
                                   ^
  69.   
  70.   const char *X509_get_default_cert_dir(void)

apps/apps.c:1412:2: 
1410.   	char *p;
1411.   
1412. > 	p=OPENSSL_malloc(strlen(t)+strlen(OPENSSL_CONF)+2);
1413.   	strcpy(p,t);
1414.   #ifndef OPENSSL_SYS_VMS

crypto/mem.c:289:1: start of procedure CRYPTO_malloc()
  287.   	}
  288.   
  289. > void *CRYPTO_malloc(int num, const char *file, int line)
  290.   	{
  291.   	void *ret = NULL;

crypto/mem.c:291:2: 
  289.   void *CRYPTO_malloc(int num, const char *file, int line)
  290.   	{
  291. > 	void *ret = NULL;
  292.   	extern unsigned char cleanse_ctr;
  293.   

crypto/mem.c:294:2: 
  292.   	extern unsigned char cleanse_ctr;
  293.   
  294. > 	allow_customize = 0;
  295.   	if (malloc_debug_func != NULL)
  296.   		{

crypto/mem.c:295:6: Taking true branch
  293.   
  294.   	allow_customize = 0;
  295.   	if (malloc_debug_func != NULL)
              ^
  296.   		{
  297.   		allow_customize_debug = 0;

crypto/mem.c:297:3: 
  295.   	if (malloc_debug_func != NULL)
  296.   		{
  297. > 		allow_customize_debug = 0;
  298.   		malloc_debug_func(NULL, num, file, line, 0);
  299.   		}

crypto/mem.c:298:3: Skipping __function_pointer__(): unresolved function pointer
  296.   		{
  297.   		allow_customize_debug = 0;
  298.   		malloc_debug_func(NULL, num, file, line, 0);
           ^
  299.   		}
  300.   	ret = malloc_ex_func(num,file,line);

crypto/mem.c:300:2: Skipping __function_pointer__(): unresolved function pointer
  298.   		malloc_debug_func(NULL, num, file, line, 0);
  299.   		}
  300.   	ret = malloc_ex_func(num,file,line);
          ^
  301.   #ifdef LEVITTE_DEBUG_MEM
  302.   	fprintf(stderr, "LEVITTE_DEBUG_MEM:         > 0x%p (%d)\n", ret, num);

crypto/mem.c:304:6: Taking true branch
  302.   	fprintf(stderr, "LEVITTE_DEBUG_MEM:         > 0x%p (%d)\n", ret, num);
  303.   #endif
  304.   	if (malloc_debug_func != NULL)
              ^
  305.   		malloc_debug_func(ret, num, file, line, 1);
  306.   

crypto/mem.c:305:3: Skipping __function_pointer__(): unresolved function pointer
  303.   #endif
  304.   	if (malloc_debug_func != NULL)
  305.   		malloc_debug_func(ret, num, file, line, 1);
           ^
  306.   
  307.           /* Create a dependency on the value of 'cleanse_ctr' so our memory

crypto/mem.c:310:12: Taking false branch
  308.            * sanitisation function can't be optimised out. NB: We only do
  309.            * this for >2Kb so the overhead doesn't bother us. */
  310.           if(ret && (num > 2048))
                    ^
  311.                   ((unsigned char *)ret)[0] = cleanse_ctr;
  312.   

crypto/mem.c:313:2: 
  311.                   ((unsigned char *)ret)[0] = cleanse_ctr;
  312.   
  313. > 	return ret;
  314.   	}
  315.   

crypto/mem.c:314:2: return from a call to CRYPTO_malloc
  312.   
  313.   	return ret;
  314.   	}
          ^
  315.   
  316.   void *CRYPTO_realloc(void *str, int num, const char *file, int line)

apps/apps.c:1413:2: 
1411.   
1412.   	p=OPENSSL_malloc(strlen(t)+strlen(OPENSSL_CONF)+2);
1413. > 	strcpy(p,t);
1414.   #ifndef OPENSSL_SYS_VMS
1415.   	strcat(p,"/");
