File: 12.patch

package info (click to toggle)
procmail 3.24%2Breally3.22-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,380 kB
  • sloc: ansic: 9,888; sh: 1,920; makefile: 105
file content (16 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Santiago Vila <sanvila@debian.org>
Subject: Fixed off-by-one bug in procmail.c which made the raw flag not to be cleared properly
Bug-Debian: https://bugs.debian.org/134341
X-Debian-version: 3.22-3

--- a/src/procmail.c
+++ b/src/procmail.c
@@ -652,7 +652,7 @@
 	      nrcond= -1;
 	   if(tolock)		 /* clear temporary buffer for lockfile name */
 	      free(tolock);
-	   bbzero(flags,maxindex(flags));		  /* clear the flags */
+	   bbzero(flags,sizeof(flags));		  /* clear the flags */
 	   for(tolock=0,locknext=0;;)
 	    { chp=skpspace(chp);
 	      switch(i= *chp++)