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


crypto/mem_dbg.c:665:1: start of procedure print_leak_doall_arg()
663.   	} MEM_LEAK;
664.   
665. > static void print_leak_doall_arg(const MEM *m, MEM_LEAK *l)
666.   	{
667.   	char buf[1024];

crypto/mem_dbg.c:668:2: 
666.   	{
667.   	char buf[1024];
668. > 	char *bufp = buf;
669.   	APP_INFO *amip;
670.   	int ami_cnt;

crypto/mem_dbg.c:671:2: 
669.   	APP_INFO *amip;
670.   	int ami_cnt;
671. > 	struct tm *lcl = NULL;
672.   	CRYPTO_THREADID ti;
673.   

crypto/mem_dbg.c:676:5: Taking false branch
674.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
675.   
676.   	if(m->addr == (char *)l->bio)
           ^
677.   	    return;
678.   

crypto/mem_dbg.c:679:6: Taking true branch
677.   	    return;
678.   
679.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
680.   		{
681.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:681:3: 
679.   	if (options & V_CRYPTO_MDEBUG_TIME)
680.   		{
681. > 		lcl = localtime(&m->time);
682.   	
683.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:683:3: 
681.   		lcl = localtime(&m->time);
682.   	
683. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
684.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
685.   		bufp += strlen(bufp);
