Blame SOURCES/procmail-3.22-CVE-2017-16844.patch

0492f8
diff --git a/src/formisc.c b/src/formisc.c
0492f8
index 5c2869d..54fd013 100644
0492f8
--- a/src/formisc.c
0492f8
+++ b/src/formisc.c
0492f8
@@ -103,7 +103,7 @@ void loadsaved(sp)const struct saved*const sp;	     /* load some saved text */
0492f8
 }
0492f8
 							    /* append to buf */
0492f8
 void loadbuf(text,len)const char*const text;const size_t len;
0492f8
-{ if(buffilled+len>buflen)			  /* buf can't hold the text */
0492f8
+{ while(buffilled+len>buflen)			  /* buf can't hold the text */
0492f8
      buf=realloc(buf,buflen+=Bsize);
0492f8
   tmemmove(buf+buffilled,text,len);buffilled+=len;
0492f8
 }