crypto/mem_dbg.c:678: error: NULL_DEREFERENCE
  pointer `lcl` last assigned on line 675 could be null and is dereferenced at line 678, column 4.
Showing all 7 steps of the trace


crypto/mem_dbg.c:659:1: start of procedure print_leak_doall_arg()
657.   	} MEM_LEAK;
658.   
659. > static void print_leak_doall_arg(const MEM *m, MEM_LEAK *l)
660.   	{
661.   	char buf[1024];

crypto/mem_dbg.c:662:2: 
660.   	{
661.   	char buf[1024];
662. > 	char *bufp = buf;
663.   	APP_INFO *amip;
664.   	int ami_cnt;

crypto/mem_dbg.c:665:2: 
663.   	APP_INFO *amip;
664.   	int ami_cnt;
665. > 	struct tm *lcl = NULL;
666.   	CRYPTO_THREADID tid;
667.   

crypto/mem_dbg.c:670:5: Taking false branch
668.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
669.   
670.   	if(m->addr == (char *)l->bio)
           ^
671.   	    return;
672.   

crypto/mem_dbg.c:673:6: Taking true branch
671.   	    return;
672.   
673.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
674.   		{
675.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:675:3: 
673.   	if (options & V_CRYPTO_MDEBUG_TIME)
674.   		{
675. > 		lcl = localtime(&m->time);
676.   	
677.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:677:3: 
675.   		lcl = localtime(&m->time);
676.   	
677. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
678.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
679.   		bufp += strlen(bufp);
