Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37870326
en ru br
ALT Linux repos
S:3.22-alt11
5.0: 3.22-alt7
4.1: 3.22-alt7
4.0: 3.22-alt7
3.0: 3.22-alt4

Group :: Networking/Mail
RPM: procmail

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: procmail-3.22-rh-formail-uninitialized.patch
Download


From 1dd8aba0dac496d8d2c60322c61878ad741fe1b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
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 */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin