From 1dd8aba0dac496d8d2c60322c61878ad741fe1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 22 Mar 2017 17:23:48 +0100 Subject: [PATCH] Fixed some more conditional jumps that depended on uninitialized values --- a/src/formail.c +++ b/src/formail.c @@ -220,6 +220,7 @@ static char*getsender(namep,fldp,headreply)char*namep;struct field*fldp; { char*saddr;char*tmp; /* determine the weight */ nowm=areply&&headreply?headreply==1?sest[i].wrepl:sest[i].wrrepl:i;chp+=j; tmp=malloc((j=fldp->Tot_len-j) + 1);tmemmove(tmp,chp,j);(chp=tmp)[j-1]='\0'; + chp[j]='\0'; if(sest[i].head==From_) { char*pastad; if(strchr(saddr=chp,'\n')) /* multiple From_ lines */